mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
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.
This commit is contained in:
parent
fbad068aeb
commit
11521a4cde
2 changed files with 5 additions and 1 deletions
4
docs/content/error/compile/selmulti.ngdoc
Normal file
4
docs/content/error/compile/selmulti.ngdoc
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
@ngdoc error
|
||||
@name $compile:selmulti
|
||||
@fullName Binding to Multiple Attribute
|
||||
@description
|
||||
|
|
@ -1220,7 +1220,7 @@ function $CompileProvider($provide) {
|
|||
|
||||
|
||||
if (name === "multiple" && nodeName_(node) === "SELECT") {
|
||||
throw new $compileMinErr("selmulti", "Binding to the multiple attribute is not supported. Element: {0}",
|
||||
throw $compileMinErr("selmulti", "Binding to the multiple attribute is not supported. Element: {0}",
|
||||
startingTag(node));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue