diff options
| author | Igor Minar | 2012-10-25 01:00:21 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-10-29 17:49:56 -0700 |
| commit | 54b3875ba5cb6ce8ddac61ace33c1b2f600875ff (patch) | |
| tree | 1972bc31f772d4c7da2e8cfc6c85bec61c6abdde | |
| parent | 008a782bc8ed8a7ebcb63d563d1420fd1b312452 (diff) | |
| download | angular.js-54b3875ba5cb6ce8ddac61ace33c1b2f600875ff.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
| -rw-r--r-- | src/ng/compile.js | 2 |
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)) { |
