From bcca80548dde85ffe3838c943ba8e5c2deb1c721 Mon Sep 17 00:00:00 2001 From: Jeff Cross Date: Tue, 26 Nov 2013 16:58:59 -0800 Subject: [PATCH] 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. --- closure/angular.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/closure/angular.js b/closure/angular.js index 0103c555ebfa..09e31723d7a6 100644 --- a/closure/angular.js +++ b/closure/angular.js @@ -225,6 +225,11 @@ angular.uppercase = function(s) {}; */ angular.Attributes; +/** + * @type {Object.} + */ +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;