aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/compile.js
diff options
context:
space:
mode:
authorMisko Hevery2012-06-04 21:11:35 -0700
committerIgor Minar2012-06-08 15:27:02 -0700
commitbcc3a021ebbdc33f826cc668e40de360ee6a6b23 (patch)
tree7b616144e89a5cad6ce8b47d94fc9261cf39e356 /src/ng/compile.js
parenta57141fd1d24962982e512c65e0e16d9b5edefe4 (diff)
downloadangular.js-bcc3a021ebbdc33f826cc668e40de360ee6a6b23.tar.bz2
chore(jqLite): performance reordering
Diffstat (limited to 'src/ng/compile.js')
-rw-r--r--src/ng/compile.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js
index 5c7f1419..0d9ff9ea 100644
--- a/src/ng/compile.js
+++ b/src/ng/compile.js
@@ -286,7 +286,7 @@ function $CompileProvider($provide) {
* @param {string=} attrName Optional none normalized name. Defaults to key.
*/
$set: function(key, value, writeAttr, attrName) {
- var booleanKey = isBooleanAttr(this.$$element[0], key.toLowerCase());
+ var booleanKey = getBooleanAttrName(this.$$element[0], key);
if (booleanKey) {
this.$$element.prop(key, value);
@@ -498,7 +498,7 @@ function $CompileProvider($provide) {
attrs[nName] = value = trim((msie && name == 'href')
? decodeURIComponent(node.getAttribute(name, 2))
: attr.value);
- if (isBooleanAttr(node, nName)) {
+ if (getBooleanAttrName(node, nName)) {
attrs[nName] = true; // presence means true
}
addAttrInterpolateDirective(node, directives, value, nName);