Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit bcca805

Browse files
committedNov 27, 2013
feat($attrs): add $attrs.$attr to externs so that it isn't renamed
This fixes the issue that any usage of $attr is broken after js compilation.
1 parent 736c8fb commit bcca805

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎closure/angular.js

+9
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,11 @@ angular.uppercase = function(s) {};
225225
*/
226226
angular.Attributes;
227227

228+
/**
229+
* @type {Object.<string, string>}
230+
*/
231+
angular.Attributes.$attr;
232+
228233
/**
229234
* @param {string} name
230235
* @return {string}
@@ -1578,6 +1583,7 @@ angular.$q.when = function(value) {};
15781583
* @typedef {{
15791584
* resolve: function(*=),
15801585
* reject: function(*=),
1586+
* notify: function(*=),
15811587
* promise: angular.$q.Promise
15821588
* }}
15831589
*/
@@ -1589,6 +1595,9 @@ angular.$q.Deferred.resolve = function(opt_value) {};
15891595
/** @param {*=} opt_reason */
15901596
angular.$q.Deferred.reject = function(opt_reason) {};
15911597

1598+
/** @param {*=} opt_value */
1599+
angular.$q.Deferred.notify = function(opt_value) {};
1600+
15921601
/** @type {angular.$q.Promise} */
15931602
angular.$q.Deferred.promise;
15941603

0 commit comments

Comments
 (0)