diff options
| author | Igor Minar | 2012-04-10 14:29:49 -0700 | 
|---|---|---|
| committer | Igor Minar | 2012-04-10 16:52:12 -0700 | 
| commit | 52ee1ab5eb0f3197453b26c60a70239ac3fffea7 (patch) | |
| tree | 2c4dc57ec34d4fbc08248d72daf403bc36421f46 /src/ng/directive/booleanAttrs.js | |
| parent | fcc556df3745d4c7768e235cb5f1caf70eb34639 (diff) | |
| download | angular.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.js | 4 | 
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) { | 
