uiDraggable revert not working anymore with jquery-2.0.3 -


i'm want change jquery-1.9.1 jquery-2.0.3 , revert draggable objects isn't working anymore. i'm using:

revert: function(event,ui){             $(this).data("uidraggable").originalposition = {                 top: 528, left: 254             };             return !event;         }, 

so draggable object returns original position. error i'm getting ist:

typeerror: $(...).data(...) undefined

top: 528, left: 254

can help?

$(this).data('ui-draggable').originalposition = {   top: 50,   left: 0 }; 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -