From 11521a4cde689c2bd6aaa227b1f45cb3fb53725b Mon Sep 17 00:00:00 2001 From: Ken Sheedlo Date: Fri, 26 Jul 2013 15:53:45 -0700 Subject: 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. --- docs/content/error/compile/selmulti.ngdoc | 4 ++++ src/ng/compile.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 docs/content/error/compile/selmulti.ngdoc diff --git a/docs/content/error/compile/selmulti.ngdoc b/docs/content/error/compile/selmulti.ngdoc new file mode 100644 index 00000000..d737ca35 --- /dev/null +++ b/docs/content/error/compile/selmulti.ngdoc @@ -0,0 +1,4 @@ +@ngdoc error +@name $compile:selmulti +@fullName Binding to Multiple Attribute +@description diff --git a/src/ng/compile.js b/src/ng/compile.js index 25f9a0a8..9e7f9553 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -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)); } -- cgit v1.2.3