aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive/booleanAttrs.js
diff options
context:
space:
mode:
authorIgor Minar2012-04-10 14:29:49 -0700
committerIgor Minar2012-04-10 16:52:12 -0700
commit52ee1ab5eb0f3197453b26c60a70239ac3fffea7 (patch)
tree2c4dc57ec34d4fbc08248d72daf403bc36421f46 /src/ng/directive/booleanAttrs.js
parentfcc556df3745d4c7768e235cb5f1caf70eb34639 (diff)
downloadangular.js-52ee1ab5eb0f3197453b26c60a70239ac3fffea7.tar.bz2
chore(*): remove dead code and fix code style issues
Diffstat (limited to 'src/ng/directive/booleanAttrs.js')
-rw-r--r--src/ng/directive/booleanAttrs.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ng/directive/booleanAttrs.js b/src/ng/directive/booleanAttrs.js
index c9f286fb..e25b259c 100644
--- a/src/ng/directive/booleanAttrs.js
+++ b/src/ng/directive/booleanAttrs.js
@@ -282,7 +282,7 @@ forEach(BOOLEAN_ATTR, function(propName, attrName) {
ngAttributeAliasDirectives[normalized] = function() {
return {
priority: 100,
- compile: function(tpl, attr) {
+ compile: function() {
return function(scope, element, attr) {
attr.$$observers[attrName] = [];
scope.$watch(attr[normalized], function(value) {
@@ -301,7 +301,7 @@ forEach(['src', 'href'], function(attrName) {
ngAttributeAliasDirectives[normalized] = function() {
return {
priority: 99, // it needs to run after the attributes are interpolated
- compile: function(tpl, attr) {
+ compile: function() {
return function(scope, element, attr) {
var value = attr[normalized];
if (value == undefined) {