Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#11012 closed bug (invalid)

jquery.event.drag does not work with jQuery 1.7.1

Reported by: [email protected] Owned by: [email protected]
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

Change History (10)

comment:1 Changed 10 years ago by sindresorhus

Owner: set to [email protected]
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.

comment:2 Changed 10 years ago by trac-o-bot

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!

comment:3 Changed 10 years ago by torava

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.

comment:4 Changed 10 years ago by dmethvin

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

comment:5 Changed 10 years ago by dmethvin

Resolution: invalid
Status: closedreopened

comment:6 Changed 10 years ago by dmethvin

Component: unfiledevent
Priority: undecidedlow
Status: reopenedpending

comment:7 Changed 10 years ago by torava

[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.

Version 0, edited 10 years ago by torava (next)

comment:8 Changed 10 years ago by dmethvin

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.

comment:9 Changed 10 years ago by torava

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

comment:10 Changed 10 years ago by torava

Replying to 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.

Note: See TracTickets for help on using tickets.