aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/compile.js
diff options
context:
space:
mode:
authorIgor Minar2012-10-25 01:00:21 -0700
committerIgor Minar2012-10-29 19:39:34 -0700
commitadfb75e3c6cb5765e94c915f50008fa9799befd1 (patch)
tree33590354ab49036c7e8bc7a939629ea3bfc8cee9 /src/ng/compile.js
parent9bff5c60df21271bea91620d9ec1bcd1cdb54c56 (diff)
downloadangular.js-adfb75e3c6cb5765e94c915f50008fa9799befd1.tar.bz2
fix($compile): don't look for class directives in empty string
if className is undefined or empty string, don't bother looking for directives in there
Diffstat (limited to 'src/ng/compile.js')
-rw-r--r--src/ng/compile.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js
index fd431849..9ed7f107 100644
--- a/src/ng/compile.js
+++ b/src/ng/compile.js
@@ -474,7 +474,7 @@ function $CompileProvider($provide) {
// use class as directive
className = node.className;
- if (isString(className)) {
+ if (isString(className) && className !== '') {
while (match = CLASS_DIRECTIVE_REGEXP.exec(className)) {
nName = directiveNormalize(match[2]);
if (addDirective(directives, nName, 'C', maxPriority)) {