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

@ -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.");
}); });
}); });