Ver Fonte

put view arg in loading callback (issue 1018)

Adam Shaw há 12 anos atrás
pai
commit
7f8de6fe2f
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      src/EventManager.js

+ 2 - 2
src/EventManager.js

@@ -333,14 +333,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());
 		}
 	}