mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
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.
This commit is contained in:
parent
736c8fbbae
commit
bcca80548d
1 changed files with 9 additions and 0 deletions
9
closure/angular.js
vendored
9
closure/angular.js
vendored
|
|
@ -225,6 +225,11 @@ angular.uppercase = function(s) {};
|
|||
*/
|
||||
angular.Attributes;
|
||||
|
||||
/**
|
||||
* @type {Object.<string, string>}
|
||||
*/
|
||||
angular.Attributes.$attr;
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @return {string}
|
||||
|
|
@ -1578,6 +1583,7 @@ angular.$q.when = function(value) {};
|
|||
* @typedef {{
|
||||
* resolve: function(*=),
|
||||
* reject: function(*=),
|
||||
* notify: function(*=),
|
||||
* promise: angular.$q.Promise
|
||||
* }}
|
||||
*/
|
||||
|
|
@ -1589,6 +1595,9 @@ angular.$q.Deferred.resolve = function(opt_value) {};
|
|||
/** @param {*=} opt_reason */
|
||||
angular.$q.Deferred.reject = function(opt_reason) {};
|
||||
|
||||
/** @param {*=} opt_value */
|
||||
angular.$q.Deferred.notify = function(opt_value) {};
|
||||
|
||||
/** @type {angular.$q.Promise} */
|
||||
angular.$q.Deferred.promise;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue