Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit b567549

Browse files
committed
restoring previous falsy behavior
1 parent 5f673da commit b567549

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/compile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
970970
}
971971

972972
function getDirectiveRestrict(restrict, name) {
973-
if (restrict != null && !(isString(restrict) && /[EACM]/.test(restrict))) {
973+
if (restrict && !(isString(restrict) && /[EACM]/.test(restrict))) {
974974
throw $compileMinErr('badrestrict',
975975
"Restrict property '{0}' of directive '{1}' is invalid",
976976
restrict,

0 commit comments

Comments
 (0)