diff options
| author | Misko Hevery | 2010-10-26 22:02:24 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2010-10-27 15:42:46 -0700 | 
| commit | 62c0e5c46091d8b98a20c31ab26e715bad574bae (patch) | |
| tree | 18e73b82cb9017b9e9b66d3ec094c53ce0b633a8 /src/directives.js | |
| parent | c67af8a03819004c4aaa775805badd1e631af738 (diff) | |
| download | angular.js-62c0e5c46091d8b98a20c31ab26e715bad574bae.tar.bz2 | |
Fix failing tests for ie, and mark elements as ng-widget, ng-directive, and ng-binding
Diffstat (limited to 'src/directives.js')
| -rw-r--r-- | src/directives.js | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/src/directives.js b/src/directives.js index a1fa4740..e21dca89 100644 --- a/src/directives.js +++ b/src/directives.js @@ -22,7 +22,8 @@ angularDirective("ng:eval", function(expression){    };  }); -angularDirective("ng:bind", function(expression){ +angularDirective("ng:bind", function(expression, element){ +  element.addClass('ng-binding');    return function(element) {      var lastValue = noop, lastError = noop;      this.$onEval(function() { @@ -97,7 +98,8 @@ function compileBindTemplate(template){    return fn;  } -angularDirective("ng:bind-template", function(expression){ +angularDirective("ng:bind-template", function(expression, element){ +  element.addClass('ng-binding');    var templateFn = compileBindTemplate(expression);    return function(element) {      var lastValue;  | 
