Removed unused $timeout dependency from on-finish-render.client.directive.js

This commit is contained in:
David Baldwynn 2017-04-22 20:48:28 -07:00 committed by GitHub
parent 175ee4cd8a
commit 43365fb3fc

View file

@ -1,6 +1,6 @@
'use strict';
angular.module('forms').directive('onFinishRender', function ($rootScope, $timeout) {
angular.module('forms').directive('onFinishRender', function ($rootScope) {
return {
restrict: 'A',
link: function (scope, element, attrs) {
@ -16,9 +16,8 @@ angular.module('forms').directive('onFinishRender', function ($rootScope, $timeo
scope.$evalAsync(function () {
$rootScope.$broadcast(broadcastMessage+' Started');
});
}else if(scope.$last) {
} else if(scope.$last) {
scope.$evalAsync(function () {
// console.log(broadcastMessage+'Finished');
$rootScope.$broadcast(broadcastMessage+' Finished');
});
}