Skip to content

Commit

Permalink
directive link fn arguments fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Castillo committed Jan 14, 2015
1 parent 48bc602 commit e0d6816
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions angular-css.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* CSS on-demand for AngularJS
* @version v1.0.5
* AngularCSS - CSS on-demand for AngularJS
* @version v1.0.6
* @author DOOR3, Alex Castillo
* @link http://door3.github.io/angular-css
* @license MIT License, http://www.opensource.org/licenses/MIT
Expand Down Expand Up @@ -455,8 +455,9 @@
directive.compile = function(tElement, tAttrs) {
var link = compile ? compile.apply(this, arguments): false;
return function(scope, element, attrs) {
var linkArgs = arguments;
$timeout(function () {
if (link) link.apply(this, arguments);
if (link) link.apply(this, linkArgs);
});
$rootScope.$broadcast('$directiveAdd', directive, scope);
};
Expand Down
2 changes: 1 addition & 1 deletion angular-css.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e0d6816

Please sign in to comment.