mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Droppable: Use internal guid instead of jQuery.guid.
This commit is contained in:
parent
b0fda0cd14
commit
98795e3d91
5
ui/jquery.ui.droppable.js
vendored
5
ui/jquery.ui.droppable.js
vendored
@ -14,7 +14,8 @@
|
|||||||
*/
|
*/
|
||||||
(function( $, undefined ) {
|
(function( $, undefined ) {
|
||||||
|
|
||||||
var droppables = {};
|
var guid = 0,
|
||||||
|
droppables = {};
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var orig = $.ui.draggable.prototype._trigger;
|
var orig = $.ui.draggable.prototype._trigger;
|
||||||
@ -43,7 +44,7 @@ $.widget( "ui.droppable", {
|
|||||||
|
|
||||||
_create: function() {
|
_create: function() {
|
||||||
this.refreshPosition();
|
this.refreshPosition();
|
||||||
this.guid = $.guid++;
|
this.guid = guid++;
|
||||||
droppables[ this.guid ] = this;
|
droppables[ this.guid ] = this;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user