Skip to main content

Bug Tracker

Side navigation

#11012 closed bug (invalid)

Opened December 13, 2011 03:52PM UTC

Closed December 29, 2011 08:00PM UTC

Last modified January 07, 2012 09:02PM UTC

jquery.event.drag does not work with jQuery 1.7.1

Reported by: xiarugu@163.com Owned by: xiarugu@163.com
Priority: low Milestone: None
Component: event Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:
Description

when use $(document).on("drag", "div", div_Drag) or $("div").live("drag", div_Drag)

it does not work in jQuery 1.7.1

as it can work in jQuery 1.6.x

Attachments (0)
Change History (10)

Changed December 14, 2011 12:14AM UTC by sindresorhus comment:1

owner: → xiarugu@163.com
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.

Changed December 28, 2011 08:02AM UTC by trac-o-bot comment:2

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Changed December 29, 2011 11:35AM UTC by torava comment:3

I'm having the same problem. The newest version of the plugin is developed for jQuery 1.4.2. (it's the version used on the plugin's website) Changes made in newer versions of jQuery results this issue. An example on the plugin's website uses live delegation and with jQuery 1.7 it won't work because in it the function is deprecated. I guess a fix for jQuery 1.7 wouldn't need really big changes to plugin.

Changed December 29, 2011 02:29PM UTC by dmethvin comment:4

Deprecation does not change the function of the software, it is strictly a documentation thing. We still need a test case, I'll reopen.

Changed December 29, 2011 02:29PM UTC by dmethvin comment:5

resolution: invalid
status: closedreopened

Changed December 29, 2011 02:29PM UTC by dmethvin comment:6

component: unfiledevent
priority: undecidedlow
status: reopenedpending

Changed December 29, 2011 07:51PM UTC by torava comment:7

_comment0: [Here's a test case http://jsfiddle.net/96Zkv/]. \ \ Using jQuery 1.6.4 it works. You are able to drag a box you added to the screen. If you try it with jQuery 1.7, it no longer works. The functionality of event.drag plugin has disappeared.1325188323768682

Here's a test case.

Using jQuery 1.6.4 it works. You are able to drag a box you added to the screen. If you try it with jQuery 1.7, it no longer works. The functionality of event.drag plugin has disappeared.

Changed December 29, 2011 08:00PM UTC by dmethvin comment:8

resolution: → invalid
status: pendingclosed

I see this in the jQuery.event.drag plugin:

jQuery.event.triggered=true;

That has never been a documented interface, and it is no longer is a Boolean. The authors of the plugin will need to change their code, have them contact me if they need help.

Changed December 30, 2011 09:10AM UTC by torava comment:9

I think the plugin is discontinued so they're not going to fix it.

Changed January 07, 2012 09:02PM UTC by torava comment:10

Replying to [comment:8 dmethvin]:

I see this in the jQuery.event.drag plugin: > jQuery.event.triggered=true; That has never been a documented interface, and it is no longer is a Boolean. The authors of the plugin will need to change their code, have them contact me if they need help.

I found a fix to this issue from this thread. However, it's not helping with live delegation, at least not as far as my tests go.