Skip to content

Commit e0d6816

Browse files
author
Alexander Castillo
committed
directive link fn arguments fix
1 parent 48bc602 commit e0d6816

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

angular-css.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* CSS on-demand for AngularJS
3-
* @version v1.0.5
2+
* AngularCSS - CSS on-demand for AngularJS
3+
* @version v1.0.6
44
* @author DOOR3, Alex Castillo
55
* @link http://door3.github.io/angular-css
66
* @license MIT License, http://www.opensource.org/licenses/MIT
@@ -455,8 +455,9 @@
455455
directive.compile = function(tElement, tAttrs) {
456456
var link = compile ? compile.apply(this, arguments): false;
457457
return function(scope, element, attrs) {
458+
var linkArgs = arguments;
458459
$timeout(function () {
459-
if (link) link.apply(this, arguments);
460+
if (link) link.apply(this, linkArgs);
460461
});
461462
$rootScope.$broadcast('$directiveAdd', directive, scope);
462463
};

angular-css.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)