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

Commit 9df5b53

Browse files
committed
docs(README): add note about callbacks and $apply
Closes #361, relates to #360.
1 parent 18dacfa commit 9df5b53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ This is the preferred way since it:
6464

6565
All the [jQueryUI Sortable options](http://api.jqueryui.com/sortable/) can be passed through the directive.
6666
Additionally, the `ui` argument of the available callbacks gets enriched with some extra properties as specified to the [API.md file](API.md#uiitemsortable-api-documentation).
67-
67+
Any model changes that happen inside the available callbacks, are applied right after the stop event. We are not wrapping callbacks like `start`/`change`/... with `$apply`, in order to minimize the number of digest loops and avoid possible modifications of the model (eg: by watchers) before the drop takes place.
6868

6969
```js
7070
myAppModule.controller('MyController', function($scope) {

0 commit comments

Comments
 (0)