@@ -348,13 +348,14 @@ var jqyoui = angular.module('ngDragDrop', []).service('ngDragDropService', ['$ti
348348 priority : 1 ,
349349 link : function ( scope , elem , attrs ) {
350350 var element = $ ( elem ) ;
351- var dropSettings , killWatcher ;
351+ var dropSettings , jqyouiOptions , killWatcher ;
352352 var updateDroppable = function ( newValue , oldValue ) {
353353 if ( newValue ) {
354354 dropSettings = scope . $eval ( $ ( element ) . attr ( 'jqyoui-droppable' ) || $ ( element ) . attr ( 'data-jqyoui-droppable' ) ) || { } ;
355+ jqyouiOptions = scope . $eval ( attrs . jqyouiOptions ) || { } ;
355356 element
356357 . droppable ( { disabled : false } )
357- . droppable ( scope . $eval ( attrs . jqyouiOptions ) || { } )
358+ . droppable ( jqyouiOptions )
358359 . droppable ( {
359360 over : function ( event , ui ) {
360361 ngDragDropService . callEventCallback ( scope , dropSettings . onOver , event , ui ) ;
@@ -383,7 +384,7 @@ var jqyoui = angular.module('ngDragDrop', []).service('ngDragDropService', ['$ti
383384 ngDragDropService . callEventCallback ( scope , dropSettings . onDrop , event , ui ) ;
384385 }
385386 } ) , function ( ) {
386- ui . draggable . css ( { left : '' , top : '' } ) ;
387+ ui . draggable . animate ( { left : '' , top : '' } , jqyouiOptions . revertDuration || 0 ) ;
387388 } ) ;
388389 }
389390 } ) ;
0 commit comments