diff options
| author | Ken Sheedlo | 2013-07-26 15:53:45 -0700 | 
|---|---|---|
| committer | Ken Sheedlo | 2013-07-26 15:58:40 -0700 | 
| commit | 11521a4cde689c2bd6aaa227b1f45cb3fb53725b (patch) | |
| tree | cf7f37369e6c8b155ea82973db8d3f4dcdca3f26 | |
| parent | fbad068aeb229fd3dd2a3004879584c728fed735 (diff) | |
| download | angular.js-11521a4cde689c2bd6aaa227b1f45cb3fb53725b.tar.bz2 | |
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.
| -rw-r--r-- | docs/content/error/compile/selmulti.ngdoc | 4 | ||||
| -rw-r--r-- | src/ng/compile.js | 2 | 
2 files changed, 5 insertions, 1 deletions
| 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));        } | 
