Skip to content

Commit

Permalink
* correct ng-events
Browse files Browse the repository at this point in the history
  • Loading branch information
RubaXa committed Apr 13, 2015
1 parent c1f6cf5 commit 12df12c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ng-sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@


angular.module('ng-sortable', [])
.constant('version', '0.3.6')
.constant('version', '0.3.7')
.directive('ngSortable', ['$parse', function ($parse) {
var removed,
nextSibling;
Expand Down Expand Up @@ -78,7 +78,7 @@

/* jshint expr:true */
options[name] && options[name]({
model: item,
model: item || source && source.item(evt.item),
models: source && source.items(),
oldIndex: evt.oldIndex,
newIndex: evt.newIndex
Expand Down Expand Up @@ -143,13 +143,13 @@
},
onUpdate: function (/**Event*/evt) {
_sync(evt);
_emitEvent(evt, source && source.item(evt.item));
_emitEvent(evt);
},
onRemove: function (/**Event*/evt) {
_emitEvent(evt, removed);
},
onSort: function (/**Event*/evt) {
_emitEvent(evt, source && source.item(evt.item));
_emitEvent(evt);
}
}));

Expand Down

0 comments on commit 12df12c

Please sign in to comment.