docs(minErr): rename compile/utrat to compile/uterdir

This commit is contained in:
Igor Minar 2013-08-08 10:59:48 -07:00
parent caa71c2772
commit e27fb4ddd6
3 changed files with 6 additions and 6 deletions

View file

@ -1,5 +1,5 @@
@ngdoc error
@name $compile:utrat
@name $compile:uterdir
@fullName Unterminated Directive
@description

View file

@ -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++;

View file

@ -3228,7 +3228,7 @@ describe('$compile', function() {
'<div>' +
'<span foo-start></span>' +
'</div>');
}).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() {
'<div>' +
'<span foo-start><span foo-end></span></span>' +
'</div>');
}).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.");
});
});