diff options
| author | Di Peng | 2011-08-25 16:31:00 -0700 | 
|---|---|---|
| committer | Di Peng | 2011-08-25 16:34:18 -0700 | 
| commit | 5927b23ef35736ec075e226c32d46decb5d42e34 (patch) | |
| tree | 4c3f6b934b12e16854983f7ba51402cdf9618b01 /src/markups.js | |
| parent | 452607fc64b2b0ba5ee9a8745746e652ae21b6db (diff) | |
| download | angular.js-5927b23ef35736ec075e226c32d46decb5d42e34.tar.bz2 | |
fix(markup): Make special attrs such as ng:href work even without binding
- special attrs such as ng:href, ng:check did not work as intended when
their values do not contain bindings. And this commit is to fix that
Closes #534
Diffstat (limited to 'src/markups.js')
| -rw-r--r-- | src/markups.js | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/src/markups.js b/src/markups.js index 955b9844..3144bbb0 100644 --- a/src/markups.js +++ b/src/markups.js @@ -418,7 +418,7 @@ angularAttrMarkup('{{}}', function(value, name, element){      value = decodeURI(value);    var bindings = parseBindings(value),        bindAttr; -  if (hasBindings(bindings)) { +  if (hasBindings(bindings) || SPECIAL_ATTRS[name]) {      element.removeAttr(name);      bindAttr = fromJson(element.attr(NG_BIND_ATTR) || "{}");      bindAttr[SPECIAL_ATTRS[name] || name] = value;  | 
