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 @ngdoc error
@name $compile:utrat @name $compile:uterdir
@fullName Unterminated Directive @fullName Unterminated Directive
@description @description

View file

@ -295,7 +295,7 @@ function $CompileProvider($provide) {
* *
* @description * @description
* Adds the CSS class value specified by the classVal parameter to the element. If animations * 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 * @param {string} classVal The className value that will be added to the element
*/ */
@ -313,7 +313,7 @@ function $CompileProvider($provide) {
* *
* @description * @description
* Removes the CSS class value specified by the classVal parameter from the element. If animations * 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 * @param {string} classVal The className value that will be removed from the element
*/ */
@ -691,7 +691,7 @@ function $CompileProvider($provide) {
var startNode = node; var startNode = node;
do { do {
if (!node) { 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.nodeType == 1 /** Element **/) {
if (node.hasAttribute(attrStart)) depth++; if (node.hasAttribute(attrStart)) depth++;

View file

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