From e27fb4ddd69126834ced3f200da959b19d5b2160 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Thu, 8 Aug 2013 10:59:48 -0700 Subject: docs(minErr): rename compile/utrat to compile/uterdir --- docs/content/error/compile/uterdir.ngdoc | 34 ++++++++++++++++++++++++++++++++ docs/content/error/compile/utrat.ngdoc | 34 -------------------------------- src/ng/compile.js | 6 +++--- test/ng/compileSpec.js | 4 ++-- 4 files changed, 39 insertions(+), 39 deletions(-) create mode 100644 docs/content/error/compile/uterdir.ngdoc delete mode 100644 docs/content/error/compile/utrat.ngdoc diff --git a/docs/content/error/compile/uterdir.ngdoc b/docs/content/error/compile/uterdir.ngdoc new file mode 100644 index 00000000..c1f263f9 --- /dev/null +++ b/docs/content/error/compile/uterdir.ngdoc @@ -0,0 +1,34 @@ +@ngdoc error +@name $compile:uterdir +@fullName Unterminated Directive +@description + +This error occurs when using multi-element directives and a `directive-start` attribute fails to form a matching pair with a corresponding `directive-end` attribute. +A `directive-start` should have a matching `directive-end` on a sibling node in the DOM. For instance, + +``` + + I get repeated + I also get repeated +
+``` + +is a valid example. + +This error can occur in several different ways. One is by leaving out the `directive-end` attribute, like so: + +``` +
+ +
+``` + +Another is by nesting a `directive-end` inside of `directive-start`, or vice versa: + +``` +
+ +
+``` + +To avoid this error, make sure each `directive-start` you use has a matching `directive-end` on a sibling node in the DOM. diff --git a/docs/content/error/compile/utrat.ngdoc b/docs/content/error/compile/utrat.ngdoc deleted file mode 100644 index a6c647bb..00000000 --- a/docs/content/error/compile/utrat.ngdoc +++ /dev/null @@ -1,34 +0,0 @@ -@ngdoc error -@name $compile:utrat -@fullName Unterminated Directive -@description - -This error occurs when using multi-element directives and a `directive-start` attribute fails to form a matching pair with a corresponding `directive-end` attribute. -A `directive-start` should have a matching `directive-end` on a sibling node in the DOM. For instance, - -``` - - I get repeated - I also get repeated -
-``` - -is a valid example. - -This error can occur in several different ways. One is by leaving out the `directive-end` attribute, like so: - -``` -
- -
-``` - -Another is by nesting a `directive-end` inside of `directive-start`, or vice versa: - -``` -
- -
-``` - -To avoid this error, make sure each `directive-start` you use has a matching `directive-end` on a sibling node in the DOM. diff --git a/src/ng/compile.js b/src/ng/compile.js index ad979e33..c2eeae27 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -295,7 +295,7 @@ function $CompileProvider($provide) { * * @description * Adds the CSS class value specified by the classVal parameter to the element. If animations - * are enabled then an animation will be triggered for the class addition. + * are enabled then an animation will be triggered for the class addition. * * @param {string} classVal The className value that will be added to the element */ @@ -313,7 +313,7 @@ function $CompileProvider($provide) { * * @description * Removes the CSS class value specified by the classVal parameter from the element. If animations - * are enabled then an animation will be triggered for the class removal. + * are enabled then an animation will be triggered for the class removal. * * @param {string} classVal The className value that will be removed from the element */ @@ -691,7 +691,7 @@ function $CompileProvider($provide) { var startNode = node; do { if (!node) { - throw $compileMinErr('utrat', "Unterminated attribute, found '{0}' but no matching '{1}' found.", attrStart, attrEnd); + throw $compileMinErr('uterdir', "Unterminated attribute, found '{0}' but no matching '{1}' found.", attrStart, attrEnd); } if (node.nodeType == 1 /** Element **/) { if (node.hasAttribute(attrStart)) depth++; diff --git a/test/ng/compileSpec.js b/test/ng/compileSpec.js index 25d2db35..f7f2c51b 100755 --- a/test/ng/compileSpec.js +++ b/test/ng/compileSpec.js @@ -3228,7 +3228,7 @@ describe('$compile', function() { '
' + '' + '
'); - }).toThrow("[$compile:utrat] Unterminated attribute, found 'foo-start' but no matching 'foo-end' found."); + }).toThrow("[$compile:uterdir] Unterminated attribute, found 'foo-start' but no matching 'foo-end' found."); }); }); @@ -3246,7 +3246,7 @@ describe('$compile', function() { '
' + '' + '
'); - }).toThrow("[$compile:utrat] Unterminated attribute, found 'foo-start' but no matching 'foo-end' found."); + }).toThrow("[$compile:uterdir] Unterminated attribute, found 'foo-start' but no matching 'foo-end' found."); }); }); -- cgit v1.2.3