From 146e3fbff19955f85b719a2efc1b59cc8c62b1a5 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 9 Jul 2015 12:01:43 +0200 Subject: [PATCH] angularjs - Added $normalize to IAttributes --- angularjs/angular-tests.ts | 1 + angularjs/angular.d.ts | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/angularjs/angular-tests.ts b/angularjs/angular-tests.ts index 975059999..fed501acd 100755 --- a/angularjs/angular-tests.ts +++ b/angularjs/angular-tests.ts @@ -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){}, diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index eb826fa48..625291d33 100755 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -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