Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 2a409d5

Browse files
committed
introducing a $emit when a transaction finish
1 parent 90d2672 commit 2a409d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sortable.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,9 @@ angular.module('ui.sortable', [])
406406
// It's now safe to clear the savedNodes
407407
// since stop is the last callback.
408408
savedNodes = null;
409+
410+
//notifiy when sortable finished
411+
scope.$emit('sortable:finished');
409412
};
410413

411414
callbacks.receive = function(e, ui) {

0 commit comments

Comments
 (0)