Skip to content

Commit

Permalink
release 1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Jul 9, 2015
1 parent b93f076 commit 953fcba
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 72 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.5",
"version": "1.0.6",
"main": [
"polymer.html"
],
Expand Down
24 changes: 14 additions & 10 deletions build.log
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
BUILD LOG
---------
Build Time: 2015-06-25T16:47:16-0700
Build Time: 2015-07-09T15:17:21-0700

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

REPO REVISIONS
==============
polymer: e859b532a7fb5b10ae1311c22988b76cc6cbc04a
polymer: 4d98572c910966f24998cf1b7c1e57c08e7c8db5

BUILD HASHES
============
polymer-mini.html: 93f4b283ba95fd687562b965bf7651eab7a66a1f
polymer-micro.html: db73818583996fe27b9f1119f0e4ef46ccadc859
polymer.html: 9b0cd22e821422a8afe809ca5715612e682e5622
polymer-mini.html: d7f4428c01977dbf3079c8561ea7d1799d8cec08
polymer-micro.html: 52097d168b0e043734c5205d51c494e8831a7257
polymer.html: e50c8f2343336092402b2312cd2134a02894938e
2 changes: 1 addition & 1 deletion polymer-micro.html
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@
}
}
});
Polymer.version = '1.0.5';
Polymer.version = '1.0.6';
Polymer.Base._addFeature({
_registerFeatures: function () {
this._prepIs();
Expand Down
45 changes: 40 additions & 5 deletions polymer-mini.html
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,8 @@
var nativeInsertBefore = Element.prototype.insertBefore;
var nativeRemoveChild = Element.prototype.removeChild;
var nativeAppendChild = Element.prototype.appendChild;
var nativeCloneNode = Element.prototype.cloneNode;
var nativeImportNode = Document.prototype.importNode;
var dirtyRoots = [];
var DomApi = function (node) {
this.node = node;
Expand Down Expand Up @@ -554,8 +556,8 @@
},
_tryRemoveUndistributedNode: function (node) {
if (this.node.shadyRoot) {
if (node.parentNode) {
nativeRemoveChild.call(node.parentNode, node);
if (node._composedParent) {
nativeRemoveChild.call(node._composedParent, node);
}
return true;
}
Expand All @@ -564,7 +566,7 @@
host.shadyRoot._insertionPoints = factory(host.shadyRoot).querySelectorAll(CONTENT);
},
_nodeIsInLogicalTree: function (node) {
return Boolean(node._lightParent || node._isShadyRoot || this._ownerShadyRootForNode(node) || node.shadyRoot);
return Boolean(node._lightParent !== undefined || node._isShadyRoot || this._ownerShadyRootForNode(node) || node.shadyRoot);
},
_parentNeedsDistribution: function (parent) {
return parent && parent.shadyRoot && hasInsertionPoint(parent.shadyRoot);
Expand Down Expand Up @@ -737,6 +739,31 @@
if (this._parentNeedsDistribution(this.parentNode)) {
this._lazyDistribute(this.parentNode);
}
},
cloneNode: function (deep) {
var n = nativeCloneNode.call(this.node, false);
if (deep) {
var c$ = this.childNodes;
var d = factory(n);
for (var i = 0, nc; i < c$.length; i++) {
nc = factory(c$[i]).cloneNode(true);
d.appendChild(nc);
}
}
return n;
},
importNode: function (externalNode, deep) {
var doc = this.node instanceof HTMLDocument ? this.node : this.node.ownerDocument;
var n = nativeImportNode.call(doc, externalNode, false);
if (deep) {
var c$ = factory(externalNode).childNodes;
var d = factory(n);
for (var i = 0, nc; i < c$.length; i++) {
nc = factory(doc).importNode(c$[i], true);
d.appendChild(nc);
}
}
return n;
}
};
Object.defineProperty(DomApi.prototype, 'classList', {
Expand Down Expand Up @@ -885,8 +912,9 @@
this._clear();
var d = document.createElement('div');
d.innerHTML = text;
for (var e = d.firstChild; e; e = e.nextSibling) {
this.appendChild(e);
var c$ = Array.prototype.slice.call(d.childNodes);
for (var i = 0; i < c$.length; i++) {
this.appendChild(c$[i]);
}
}
},
Expand All @@ -909,6 +937,13 @@
n = n.parentNode;
}
};
DomApi.prototype.cloneNode = function (deep) {
return this.node.cloneNode(deep);
};
DomApi.prototype.importNode = function (externalNode, deep) {
var doc = this.node instanceof HTMLDocument ? this.node : this.node.ownerDocument;
return doc.importNode(externalNode, deep);
};
DomApi.prototype.getDestinationInsertionPoints = function () {
var n$ = this.node.getDestinationInsertionPoints();
return n$ ? Array.prototype.slice.call(n$) : [];
Expand Down
Loading

0 comments on commit 953fcba

Please sign in to comment.