Removed unused $timeout dependency from on-finish-render.client.directive.js
This commit is contained in:
parent
175ee4cd8a
commit
43365fb3fc
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('forms').directive('onFinishRender', function ($rootScope, $timeout) {
|
angular.module('forms').directive('onFinishRender', function ($rootScope) {
|
||||||
return {
|
return {
|
||||||
restrict: 'A',
|
restrict: 'A',
|
||||||
link: function (scope, element, attrs) {
|
link: function (scope, element, attrs) {
|
||||||
|
@ -16,9 +16,8 @@ angular.module('forms').directive('onFinishRender', function ($rootScope, $timeo
|
||||||
scope.$evalAsync(function () {
|
scope.$evalAsync(function () {
|
||||||
$rootScope.$broadcast(broadcastMessage+' Started');
|
$rootScope.$broadcast(broadcastMessage+' Started');
|
||||||
});
|
});
|
||||||
}else if(scope.$last) {
|
} else if(scope.$last) {
|
||||||
scope.$evalAsync(function () {
|
scope.$evalAsync(function () {
|
||||||
// console.log(broadcastMessage+'Finished');
|
|
||||||
$rootScope.$broadcast(broadcastMessage+' Finished');
|
$rootScope.$broadcast(broadcastMessage+' Finished');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue