Skip to content

Commit

Permalink
Loading function returns view object. Can be used like this:
Browse files Browse the repository at this point in the history
loading: function(isLoading,view){ alert(view.start); }
  • Loading branch information
Jarno Kurlin committed Oct 20, 2012
1 parent 204bdd8 commit a39b272
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EventManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,14 +307,14 @@ function EventManager(options, _sources) {

function pushLoading() {
if (!loadingLevel++) {
trigger('loading', null, true);
trigger('loading', null, true, getView());
}
}


function popLoading() {
if (!--loadingLevel) {
trigger('loading', null, false);
trigger('loading', null, false, getView());
}
}

Expand Down

0 comments on commit a39b272

Please sign in to comment.