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

Commit

Permalink
feat($attrs): add $attrs.$attr to externs so that it isn't renamed
Browse files Browse the repository at this point in the history
This fixes the issue that any usage of $attr is broken after js compilation.
  • Loading branch information
jeffbcross committed Nov 27, 2013
1 parent 736c8fb commit bcca805
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions closure/angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,11 @@ angular.uppercase = function(s) {};
*/
angular.Attributes;

/**
* @type {Object.<string, string>}
*/
angular.Attributes.$attr;

/**
* @param {string} name
* @return {string}
Expand Down Expand Up @@ -1578,6 +1583,7 @@ angular.$q.when = function(value) {};
* @typedef {{
* resolve: function(*=),
* reject: function(*=),
* notify: function(*=),
* promise: angular.$q.Promise
* }}
*/
Expand All @@ -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;

Expand Down

0 comments on commit bcca805

Please sign in to comment.