Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
Remove timeout from directive decorator
Browse files Browse the repository at this point in the history
Seems to fix castillo-io#50
  • Loading branch information
Greg Kuwaye committed Dec 13, 2015
1 parent 7a8dfba commit 344313c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions angular-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,11 +597,9 @@
var link = compile ? compile.apply(this, arguments): false;
return function(scope) {
var linkArgs = arguments;
$timeout(function () {
if (link) {
link.apply(this, linkArgs);
}
});
if (link) {
link.apply(this, linkArgs);
}
$rootScope.$broadcast('$directiveAdd', directive, scope);
};
};
Expand Down

0 comments on commit 344313c

Please sign in to comment.