Merge pull request #4878 from stephenlautier/master

angularjs - Added $normalize to IAttributes
This commit is contained in:
Masahiro Wakame
2015-07-13 21:57:43 +09:00
2 changed files with 10 additions and 0 deletions
+1
View File
@@ -281,6 +281,7 @@ function test_IAttributes(attributes: ng.IAttributes){
}
test_IAttributes({
$normalize: function (classVal){},
$addClass: function (classVal){},
$removeClass: function(classVal){},
$set: function(key, value){},
+9
View File
@@ -419,6 +419,15 @@ declare module angular {
*/
[name: string]: any;
/**
* Converts an attribute name (e.g. dash/colon/underscore-delimited string, optionally prefixed with x- or data-) to its normalized, camelCase form.
*
* Also there is special case for Moz prefix starting with upper case letter.
*
* For further information check out the guide on @see https://docs.angularjs.org/guide/directive#matching-directives
*/
$normalize(name: string): void;
/**
* Adds the CSS class value specified by the classVal parameter to the
* element. If animations are enabled then an animation will be triggered