Skip to content

Commit

Permalink
release v1.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Aug 8, 2015
1 parent 61968bc commit 8e89484
Show file tree
Hide file tree
Showing 5 changed files with 278 additions and 109 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "polymer",
"version": "1.0.8",
"version": "1.0.9",
"main": [
"polymer.html"
],
Expand Down
16 changes: 6 additions & 10 deletions build.log
Original file line number Diff line number Diff line change
@@ -1,30 +1,26 @@
BUILD LOG
---------
Build Time: 2015-07-23T16:07:08-0700
Build Time: 2015-08-07T17:47:46-0700

NODEJS INFORMATION
==================
nodejs: v2.4.0
nodejs: v2.5.0
del: 1.2.0
gulp: 3.9.0
gulp-audit: 1.0.0
gulp-rename: 1.2.2
gulp-replace: 0.5.3
gulp-vulcanize: 6.0.1
gulp-bump: 0.3.1
lazypipe: 0.2.4
minimist: 1.1.1
polyclean: 1.2.0
run-sequence: 1.1.1
semver: 4.3.6
nodegit: 0.4.1

REPO REVISIONS
==============
polymer: cb327518d20871c3f072d6f30ca48ce421cc028a
polymer: bf703cbb384157b9306ab2e9882abbd474f30a84

BUILD HASHES
============
polymer-mini.html: da1187ca5cd371a7a7b192e445c741e5fdc48db4
polymer-micro.html: 11d4fc24d24b1276645e4043fab589802597d318
polymer.html: 0f1f393785eb667dee807f12b0e6b55ead1cb8e5
polymer-mini.html: 9265f74d0c21712f45cfe9e05a8d13af752f6969
polymer-micro.html: 90a73dcfe37eada97a45a0a19ac790dd9e84c226
polymer.html: 0aad0f21a3c4c4ec0ce3e4acc7e8d08b10dd6a05
48 changes: 45 additions & 3 deletions polymer-micro.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,38 @@
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) {
Expand All @@ -111,17 +143,22 @@
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) {
Expand Down Expand Up @@ -179,6 +216,7 @@
Polymer.telemetry.instanceCount = 0;
(function () {
var modules = {};
var lcModules = {};
var DomModule = function () {
return document.createElement('dom-module');
};
Expand All @@ -193,10 +231,11 @@
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];
Expand Down Expand Up @@ -234,6 +273,9 @@
this.is = id;
}
}
if (this.is) {
this.is = this.is.toLowerCase();
}
}
});
Polymer.Base._addFeature({
Expand Down Expand Up @@ -521,7 +563,7 @@
}
}
});
Polymer.version = '1.0.8';
Polymer.version = '1.0.9';
Polymer.Base._addFeature({
_registerFeatures: function () {
this._prepIs();
Expand Down
18 changes: 16 additions & 2 deletions polymer-mini.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
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 <template>.'));
}
if (this._template && !this._template.content && HTMLTemplateElement.bootstrap) {
HTMLTemplateElement.decorate(this._template);
HTMLTemplateElement.bootstrap(this._template.content);
}
},
_stampTemplate: function () {
if (this._template) {
Expand Down Expand Up @@ -434,6 +438,14 @@
this.patch();
}
};
if (window.wrap && Settings.useShadow && !Settings.useNativeShadow) {
DomApi = function (node) {
this.node = wrap(node);
if (this.patch) {
this.patch();
}
};
}
DomApi.prototype = {
flush: function () {
Polymer.dom.flush();
Expand Down Expand Up @@ -507,6 +519,9 @@
this.removeChild(ref_node);
return node;
},
_hasCachedOwnerRoot: function (node) {
return Boolean(node._ownerShadyRoot !== undefined);
},
getOwnerRoot: function () {
return this._ownerShadyRootForNode(this.node);
},
Expand Down Expand Up @@ -645,8 +660,7 @@
node._lightParent = null;
},
_removeOwnerShadyRoot: function (node) {
var hasCachedRoot = factory(node).getOwnerRoot() !== undefined;
if (hasCachedRoot) {
if (this._hasCachedOwnerRoot(node)) {
var c$ = factory(node).childNodes;
for (var i = 0, l = c$.length, n; i < l && (n = c$[i]); i++) {
this._removeOwnerShadyRoot(n);
Expand Down
Loading

0 comments on commit 8e89484

Please sign in to comment.