From 5927b23ef35736ec075e226c32d46decb5d42e34 Mon Sep 17 00:00:00 2001 From: Di Peng Date: Thu, 25 Aug 2011 16:31:00 -0700 Subject: 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 --- src/markups.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3