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

Commit 11521a4

Browse files
committed
fix($compile): don't use new with minErr
Someone wrote `throw new $compileMinErr(...)` when it should have been `throw $compileMinErr(...)`. This caused a build warning.
1 parent fbad068 commit 11521a4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@ngdoc error
2+
@name $compile:selmulti
3+
@fullName Binding to Multiple Attribute
4+
@description

src/ng/compile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ function $CompileProvider($provide) {
12201220

12211221

12221222
if (name === "multiple" && nodeName_(node) === "SELECT") {
1223-
throw new $compileMinErr("selmulti", "Binding to the multiple attribute is not supported. Element: {0}",
1223+
throw $compileMinErr("selmulti", "Binding to the multiple attribute is not supported. Element: {0}",
12241224
startingTag(node));
12251225
}
12261226

0 commit comments

Comments
 (0)