Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Unified Diff: third_party/polymer/v1_0/components-chromium/iron-jsonp-library/iron-jsonp-library-extracted.js

Issue 1187823002: Update Polymer components and re-run reproduce.sh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/polymer/v1_0/components-chromium/iron-jsonp-library/iron-jsonp-library-extracted.js
diff --git a/third_party/polymer/v1_0/components-chromium/iron-jsonp-library/iron-jsonp-library-extracted.js b/third_party/polymer/v1_0/components-chromium/iron-jsonp-library/iron-jsonp-library-extracted.js
index 210f6a31d074770cfb095e4b58e06a98e09a981b..bbdb50e90ecd868bbdce416281ab742f59bc9292 100644
--- a/third_party/polymer/v1_0/components-chromium/iron-jsonp-library/iron-jsonp-library-extracted.js
+++ b/third_party/polymer/v1_0/components-chromium/iron-jsonp-library/iron-jsonp-library-extracted.js
@@ -12,6 +12,7 @@
when possible instead of using this element.
@hero hero.svg
+ @demo demo/index.html
@polymerBehavior
*/
Polymer.IronJsonpLibraryBehavior = {
@@ -87,14 +88,14 @@
}
};
- /*
+ /**
* LoaderMap keeps track of all Loaders
*/
var LoaderMap = {
apiMap: {}, // { hash -> Loader }
- /*
- * @param {function} notifyCallback loaded callback fn(result)
+ /**
+ * @param {Function} notifyCallback loaded callback fn(result)
* @param {string} jsonpCallbackName name of jsonpcallback. If API does not provide it, leave empty. Optional.
*/
require: function(url, notifyCallback, jsonpCallbackName) {
@@ -115,6 +116,7 @@
}
};
+ /** @constructor */
var Loader = function(name, url, callbackName) {
this.notifiers = []; // array of notifyFn [ notifyFn* ]
@@ -173,7 +175,7 @@
delete window[this.callbackName];
},
- notifyAll: function(notifyCallback) {
+ notifyAll: function() {
this.notifiers.forEach( function(notifyCallback) {
notifyCallback(this.error, this.result);
}.bind(this));

Powered by Google App Engine
This is Rietveld 408576698