This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
54b3875
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I sugest a changing for that line:
from: if (isString(className) && className !== '') {
to: if (isString(className) & className !== '') {
The reason is: if className is null, the code (className !== ' ') might generate an exception. The operator "&" tests each condition separatelly.