diff --git a/dashboard-ui/bower_components/polymer/.bower.json b/dashboard-ui/bower_components/polymer/.bower.json index 4740e10c72..900a119b06 100644 --- a/dashboard-ui/bower_components/polymer/.bower.json +++ b/dashboard-ui/bower_components/polymer/.bower.json @@ -1,6 +1,6 @@ { "name": "polymer", - "version": "1.0.8", + "version": "1.0.9", "main": [ "polymer.html" ], @@ -24,11 +24,11 @@ }, "private": true, "homepage": "https://github.com/Polymer/polymer", - "_release": "1.0.8", + "_release": "1.0.9", "_resolution": { "type": "version", - "tag": "v1.0.8", - "commit": "61968bc4e5db93e76306a13517014d4d3b787021" + "tag": "v1.0.9", + "commit": "8e894841ae36be85bade4b42f858ccb99b770e5d" }, "_source": "git://github.com/Polymer/polymer.git", "_target": "^1.0.0", diff --git a/dashboard-ui/bower_components/polymer/bower.json b/dashboard-ui/bower_components/polymer/bower.json index 542ec73bf8..e3d288050f 100644 --- a/dashboard-ui/bower_components/polymer/bower.json +++ b/dashboard-ui/bower_components/polymer/bower.json @@ -1,6 +1,6 @@ { "name": "polymer", - "version": "1.0.8", + "version": "1.0.9", "main": [ "polymer.html" ], diff --git a/dashboard-ui/bower_components/polymer/polymer-micro.html b/dashboard-ui/bower_components/polymer/polymer-micro.html index 87518b9931..eda921770a 100644 --- a/dashboard-ui/bower_components/polymer/polymer-micro.html +++ b/dashboard-ui/bower_components/polymer/polymer-micro.html @@ -95,6 +95,38 @@ get: function () { return (document._currentScript || document.currentScript).ownerDocument; } }); +Polymer.RenderStatus = { +_ready: false, +_callbacks: [], +whenReady: function (cb) { +if (this._ready) { +cb(); +} else { +this._callbacks.push(cb); +} +}, +_makeReady: function () { +this._ready = true; +this._callbacks.forEach(function (cb) { +cb(); +}); +this._callbacks = []; +}, +_catchFirstRender: function () { +requestAnimationFrame(function () { +Polymer.RenderStatus._makeReady(); +}); +} +}; +if (window.HTMLImports) { +HTMLImports.whenReady(function () { +Polymer.RenderStatus._catchFirstRender(); +}); +} else { +Polymer.RenderStatus._catchFirstRender(); +} +Polymer.ImportStatus = Polymer.RenderStatus; +Polymer.ImportStatus.whenLoaded = Polymer.ImportStatus.whenReady; Polymer.Base = { __isPolymerInstance__: true, _addFeature: function (feature) { @@ -111,17 +143,22 @@ this._doBehavior('created'); this._initFeatures(); }, attachedCallback: function () { +Polymer.RenderStatus.whenReady(function () { this.isAttached = true; this._doBehavior('attached'); +}.bind(this)); }, detachedCallback: function () { this.isAttached = false; this._doBehavior('detached'); }, attributeChangedCallback: function (name) { -this._setAttributeToProperty(this, name); +this._attributeChangedImpl(name); this._doBehavior('attributeChanged', arguments); }, +_attributeChangedImpl: function (name) { +this._setAttributeToProperty(this, name); +}, extend: function (prototype, api) { if (prototype && api) { Object.getOwnPropertyNames(api).forEach(function (n) { @@ -179,6 +216,7 @@ return Boolean(obj && obj.__isPolymerInstance__); Polymer.telemetry.instanceCount = 0; (function () { var modules = {}; +var lcModules = {}; var DomModule = function () { return document.createElement('dom-module'); }; @@ -193,10 +231,11 @@ var id = id || this.id || this.getAttribute('name') || this.getAttribute('is'); if (id) { this.id = id; modules[id] = this; +lcModules[id.toLowerCase()] = this; } }, import: function (id, selector) { -var m = modules[id]; +var m = modules[id] || lcModules[id.toLowerCase()]; if (!m) { forceDocumentUpgrade(); m = modules[id]; @@ -234,6 +273,9 @@ var id = module.id || module.getAttribute('name') || module.getAttribute('is'); this.is = id; } } +if (this.is) { +this.is = this.is.toLowerCase(); +} } }); Polymer.Base._addFeature({ @@ -521,7 +563,7 @@ debouncer.stop(); } } }); -Polymer.version = '1.0.8'; +Polymer.version = '1.0.9'; Polymer.Base._addFeature({ _registerFeatures: function () { this._prepIs(); diff --git a/dashboard-ui/bower_components/polymer/polymer-mini.html b/dashboard-ui/bower_components/polymer/polymer-mini.html index c795a626d3..841d597b63 100644 --- a/dashboard-ui/bower_components/polymer/polymer-mini.html +++ b/dashboard-ui/bower_components/polymer/polymer-mini.html @@ -14,6 +14,10 @@ this._template = this._template || Polymer.DomModule.import(this.is, 'template') if (this._template && this._template.hasAttribute('is')) { this._warn(this._logf('_prepTemplate', 'top-level Polymer template ' + 'must not be a type-extension, found', this._template, 'Move inside simple