Skip to content

Commit b39d001

Browse files
committed
release v1.0.7
1 parent 953fcba commit b39d001

File tree

5 files changed

+190
-151
lines changed

5 files changed

+190
-151
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "polymer",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"main": [
55
"polymer.html"
66
],

build.log

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
BUILD LOG
22
---------
3-
Build Time: 2015-07-09T15:17:21-0700
3+
Build Time: 2015-07-16T14:37:31-0700
44

55
NODEJS INFORMATION
66
==================
7-
nodejs: v2.3.3
7+
nodejs: v2.3.4
88
del: 1.2.0
9-
gulp-audit: 1.0.0
109
gulp: 3.9.0
10+
gulp-audit: 1.0.0
1111
gulp-bump: 0.3.1
1212
gulp-rename: 1.2.2
13-
gulp-vulcanize: 6.0.1
1413
gulp-replace: 0.5.3
15-
lazypipe: 0.2.3
14+
gulp-vulcanize: 6.0.1
1615
minimist: 1.1.1
16+
lazypipe: 0.2.4
1717
polyclean: 1.2.0
18-
run-sequence: 1.1.0
18+
run-sequence: 1.1.1
1919
semver: 4.3.6
2020
nodegit: 0.4.1
2121

2222
REPO REVISIONS
2323
==============
24-
polymer: 4d98572c910966f24998cf1b7c1e57c08e7c8db5
24+
polymer: 3d56eb0c97eb1ef90ec6942aca364d279377ff43
2525

2626
BUILD HASHES
2727
============
28-
polymer-mini.html: d7f4428c01977dbf3079c8561ea7d1799d8cec08
29-
polymer-micro.html: 52097d168b0e043734c5205d51c494e8831a7257
30-
polymer.html: e50c8f2343336092402b2312cd2134a02894938e
28+
polymer-mini.html: 2429dd9d7909014a82cca9f81b8df239fc5a0599
29+
polymer-micro.html: 924b916bacfafd1a166c10fce29eab24ebd02717
30+
polymer.html: dbb7a228a8facf071dea38e4db2415a9a6becfc0

polymer-micro.html

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@
5959
return ctor;
6060
};
6161
var desugar = function (prototype) {
62-
prototype = Polymer.Base.chainObject(prototype, Polymer.Base);
62+
var base = Polymer.Base;
63+
if (prototype.extends) {
64+
base = Polymer.Base._getExtendedPrototype(prototype.extends);
65+
}
66+
prototype = Polymer.Base.chainObject(prototype, base);
6367
prototype.registerCallback();
6468
return prototype.constructor;
6569
};
@@ -92,6 +96,7 @@
9296
}
9397
});
9498
Polymer.Base = {
99+
__isPolymerInstance__: true,
95100
_addFeature: function (feature) {
96101
this.extend(this, feature);
97102
},
@@ -161,6 +166,16 @@
161166
return object;
162167
};
163168
Polymer.Base = Polymer.Base.chainObject(Polymer.Base, HTMLElement.prototype);
169+
if (window.CustomElements) {
170+
Polymer.instanceof = CustomElements.instanceof;
171+
} else {
172+
Polymer.instanceof = function (obj, ctor) {
173+
return obj instanceof ctor;
174+
};
175+
}
176+
Polymer.isInstance = function (obj) {
177+
return Boolean(obj && obj.__isPolymerInstance__);
178+
};
164179
Polymer.telemetry.instanceCount = 0;
165180
(function () {
166181
var modules = {};
@@ -289,11 +304,6 @@
289304
}
290305
});
291306
Polymer.Base._addFeature({
292-
_prepExtends: function () {
293-
if (this.extends) {
294-
this.__proto__ = this._getExtendedPrototype(this.extends);
295-
}
296-
},
297307
_getExtendedPrototype: function (tag) {
298308
return this._getExtendedNativePrototype(tag);
299309
},
@@ -506,13 +516,12 @@
506516
}
507517
}
508518
});
509-
Polymer.version = '1.0.6';
519+
Polymer.version = '1.0.7';
510520
Polymer.Base._addFeature({
511521
_registerFeatures: function () {
512522
this._prepIs();
513523
this._prepAttributes();
514524
this._prepBehaviors();
515-
this._prepExtends();
516525
this._prepConstructor();
517526
},
518527
_prepBehavior: function (b) {

polymer-mini.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@
753753
return n;
754754
},
755755
importNode: function (externalNode, deep) {
756-
var doc = this.node instanceof HTMLDocument ? this.node : this.node.ownerDocument;
756+
var doc = this.node instanceof Document ? this.node : this.node.ownerDocument;
757757
var n = nativeImportNode.call(doc, externalNode, false);
758758
if (deep) {
759759
var c$ = factory(externalNode).childNodes;
@@ -941,15 +941,15 @@
941941
return this.node.cloneNode(deep);
942942
};
943943
DomApi.prototype.importNode = function (externalNode, deep) {
944-
var doc = this.node instanceof HTMLDocument ? this.node : this.node.ownerDocument;
944+
var doc = this.node instanceof Document ? this.node : this.node.ownerDocument;
945945
return doc.importNode(externalNode, deep);
946946
};
947947
DomApi.prototype.getDestinationInsertionPoints = function () {
948-
var n$ = this.node.getDestinationInsertionPoints();
948+
var n$ = this.node.getDestinationInsertionPoints && this.node.getDestinationInsertionPoints();
949949
return n$ ? Array.prototype.slice.call(n$) : [];
950950
};
951951
DomApi.prototype.getDistributedNodes = function () {
952-
var n$ = this.node.getDistributedNodes();
952+
var n$ = this.node.getDistributedNodes && this.node.getDistributedNodes();
953953
return n$ ? Array.prototype.slice.call(n$) : [];
954954
};
955955
DomApi.prototype._distributeParent = function () {
@@ -1407,7 +1407,6 @@
14071407
this._prepIs();
14081408
this._prepAttributes();
14091409
this._prepBehaviors();
1410-
this._prepExtends();
14111410
this._prepConstructor();
14121411
this._prepTemplate();
14131412
this._prepShady();

0 commit comments

Comments
 (0)