mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
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
This commit is contained in:
parent
008a782bc8
commit
54b3875ba5
1 changed files with 1 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue