release v0.7.13

This commit is contained in:
Daniel Freedman
2015-09-25 15:51:20 -07:00
15 changed files with 138 additions and 74 deletions

View File

@@ -7,7 +7,7 @@
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
// @version 0.7.12
// @version 0.7.13
if (typeof WeakMap === "undefined") {
(function() {
var defineProperty = Object.defineProperty;
@@ -341,7 +341,7 @@ if (typeof WeakMap === "undefined") {
};
global.JsMutationObserver = JsMutationObserver;
if (!global.MutationObserver) global.MutationObserver = JsMutationObserver;
})(window);
})(self);
window.CustomElements = window.CustomElements || {
flags: {}
@@ -946,7 +946,7 @@ window.CustomElements.addModule(function(scope) {
});
});
}
if (isIE && typeof window.CustomEvent !== "function") {
if (!window.CustomEvent) {
window.CustomEvent = function(inType, params) {
params = params || {};
var e = document.createEvent("CustomEvent");

File diff suppressed because one or more lines are too long

View File

@@ -7,7 +7,7 @@
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
// @version 0.7.12
// @version 0.7.13
if (typeof WeakMap === "undefined") {
(function() {
var defineProperty = Object.defineProperty;
@@ -341,7 +341,7 @@ if (typeof WeakMap === "undefined") {
};
global.JsMutationObserver = JsMutationObserver;
if (!global.MutationObserver) global.MutationObserver = JsMutationObserver;
})(window);
})(self);
window.HTMLImports = window.HTMLImports || {
flags: {}
@@ -1061,7 +1061,7 @@ window.HTMLImports.addModule(function(scope) {
if (scope.useNative) {
return;
}
if (isIE && typeof window.CustomEvent !== "function") {
if (!window.CustomEvent) {
window.CustomEvent = function(inType, params) {
params = params || {};
var e = document.createEvent("CustomEvent");

4
HTMLImports.min.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -7,7 +7,7 @@
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
// @version 0.7.12
// @version 0.7.13
if (typeof WeakMap === "undefined") {
(function() {
var defineProperty = Object.defineProperty;
@@ -341,4 +341,4 @@ if (typeof WeakMap === "undefined") {
};
global.JsMutationObserver = JsMutationObserver;
if (!global.MutationObserver) global.MutationObserver = JsMutationObserver;
})(window);
})(self);

File diff suppressed because one or more lines are too long

View File

@@ -7,7 +7,7 @@
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
// @version 0.7.12
// @version 0.7.13
if (typeof WeakMap === "undefined") {
(function() {
var defineProperty = Object.defineProperty;
@@ -3145,18 +3145,29 @@ window.ShadowDOMPolyfill = {};
"use strict";
var Element = scope.wrappers.Element;
var HTMLElement = scope.wrappers.HTMLElement;
var registerObject = scope.registerObject;
var registerWrapper = scope.registerWrapper;
var defineWrapGetter = scope.defineWrapGetter;
var unsafeUnwrap = scope.unsafeUnwrap;
var wrap = scope.wrap;
var mixin = scope.mixin;
var SVG_NS = "http://www.w3.org/2000/svg";
var OriginalSVGElement = window.SVGElement;
var svgTitleElement = document.createElementNS(SVG_NS, "title");
var SVGTitleElement = registerObject(svgTitleElement);
var SVGElement = Object.getPrototypeOf(SVGTitleElement.prototype).constructor;
if (!("classList" in svgTitleElement)) {
var descr = Object.getOwnPropertyDescriptor(Element.prototype, "classList");
Object.defineProperty(HTMLElement.prototype, "classList", descr);
delete Element.prototype.classList;
}
defineWrapGetter(SVGElement, "ownerSVGElement");
function SVGElement(node) {
Element.call(this, node);
}
SVGElement.prototype = Object.create(Element.prototype);
mixin(SVGElement.prototype, {
get ownerSVGElement() {
return wrap(unsafeUnwrap(this).ownerSVGElement);
}
});
registerWrapper(OriginalSVGElement, SVGElement, document.createElementNS(SVG_NS, "title"));
scope.wrappers.SVGElement = SVGElement;
})(window.ShadowDOMPolyfill);
@@ -3300,20 +3311,27 @@ window.ShadowDOMPolyfill = {};
(function(scope) {
"use strict";
var Node = scope.wrappers.Node;
var GetElementsByInterface = scope.GetElementsByInterface;
var NonElementParentNodeInterface = scope.NonElementParentNodeInterface;
var ParentNodeInterface = scope.ParentNodeInterface;
var SelectorsInterface = scope.SelectorsInterface;
var mixin = scope.mixin;
var registerObject = scope.registerObject;
var DocumentFragment = registerObject(document.createDocumentFragment());
var registerWrapper = scope.registerWrapper;
var OriginalDocumentFragment = window.DocumentFragment;
function DocumentFragment(node) {
Node.call(this, node);
}
DocumentFragment.prototype = Object.create(Node.prototype);
mixin(DocumentFragment.prototype, ParentNodeInterface);
mixin(DocumentFragment.prototype, SelectorsInterface);
mixin(DocumentFragment.prototype, GetElementsByInterface);
mixin(DocumentFragment.prototype, NonElementParentNodeInterface);
registerWrapper(OriginalDocumentFragment, DocumentFragment, document.createDocumentFragment());
scope.wrappers.DocumentFragment = DocumentFragment;
var Comment = registerObject(document.createComment(""));
scope.wrappers.Comment = Comment;
scope.wrappers.DocumentFragment = DocumentFragment;
})(window.ShadowDOMPolyfill);
(function(scope) {

10
ShadowDOM.min.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -1,7 +1,7 @@
{
"name": "webcomponentsjs",
"main": "webcomponents.js",
"version": "0.7.12",
"version": "0.7.13",
"homepage": "http://webcomponents.org",
"authors": [
"The Polymer Authors"

View File

@@ -1,33 +1,33 @@
BUILD LOG
---------
Build Time: 2015-08-20T15:30:06-0700
Build Time: 2015-09-25T15:51:20-0700
NODEJS INFORMATION
==================
nodejs: v0.12.7
nodejs: v4.1.1
gulp: 3.9.0
gulp-audit: 1.0.0
gulp-concat: 2.6.0
gulp-header: 1.5.0
gulp-uglify: 1.2.0
run-sequence: 1.1.2
web-component-tester: 3.3.10
gulp-header: 1.7.1
gulp-uglify: 1.4.1
run-sequence: 1.1.4
web-component-tester: 3.3.22
REPO REVISIONS
==============
webcomponentsjs: 7c1be4272a2b086d127a6de75ba3c3f1afb4738b
webcomponentsjs: d10d1b2c4fe797f9070931f3b47099def2d74bc4
BUILD HASHES
============
CustomElements.js: 6a2286302817c5be1c1a7abae454fb6fd2356b2d
CustomElements.min.js: 54ad572612b113ad0447fd0a511e6ed6a325fd5d
HTMLImports.js: fd87b2bc09df49beb357abadbab0873815b1431a
HTMLImports.min.js: 929f7aba1ffb0d9fc8eb8e46e5ab990f5afdb8cc
MutationObserver.js: 4d20015dcf0aa06b4629ebe49f15bed6e9015b03
MutationObserver.min.js: 532e4a1eeb5d76cc30aa17a746de39727f96cf0f
ShadowDOM.js: 08981892c55c927a0063d2a60b92f598bff37b1b
ShadowDOM.min.js: eb4a14b222a2f3d2ed36ec0ca4d49a1b71774b2c
webcomponents-lite.js: 7d4f78d67aacced5391b31e1367620dd7c8a4720
webcomponents-lite.min.js: 2022103f18119f2416bdd517a37f049d4bdf1e20
webcomponents.js: e687f0f116af642618b561b7f3dc1b0af320e0c5
webcomponents.min.js: 6f336e06e06e56574ba3df31798b7de346716996
CustomElements.js: 2d5375eaa835e8463187583d5ec661a3d6afe53d
CustomElements.min.js: 7e0786bd1b94ee27b0a732f303a0198146901ae6
HTMLImports.js: 91c4295af71dc9abcd4223e88087400d7f093070
HTMLImports.min.js: f99cecda8645a2db42db32816dd3a82da24e6228
MutationObserver.js: bc1d3b7b8bf0637881396b31e39a961181cff56b
MutationObserver.min.js: 5f9842afbd1c6ba3d1ca99e29822de4796967db8
ShadowDOM.js: 5fe7e05ac533e02035caaf1d0d5961ff1bff5b30
ShadowDOM.min.js: 7b550657a22ebab98ed66596921cd1ca1b223da9
webcomponents-lite.js: 94194d0cf74a7dbef2b0260b05f45f4ff0354bda
webcomponents-lite.min.js: af0e8bdc5b3c6f2fadfbb532bc371f49292f2f62
webcomponents.js: 6efd547fbadc7f379f29575db7bf946f30f2a616
webcomponents.min.js: 96523fed37c14b761bc3675a930d2d9bb4bf2a5a

View File

@@ -1,6 +1,6 @@
{
"name": "webcomponents.js",
"version": "0.7.12",
"version": "0.7.13",
"description": "webcomponents.js",
"main": "webcomponents.js",
"directories": {

View File

@@ -7,7 +7,7 @@
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
// @version 0.7.12
// @version 0.7.13
window.WebComponents = window.WebComponents || {};
(function(scope) {
@@ -574,7 +574,7 @@ window.WebComponents = window.WebComponents || {};
};
}
scope.URL = jURL;
})(this);
})(self);
if (typeof WeakMap === "undefined") {
(function() {
@@ -909,7 +909,7 @@ if (typeof WeakMap === "undefined") {
};
global.JsMutationObserver = JsMutationObserver;
if (!global.MutationObserver) global.MutationObserver = JsMutationObserver;
})(window);
})(self);
window.HTMLImports = window.HTMLImports || {
flags: {}
@@ -1629,7 +1629,7 @@ window.HTMLImports.addModule(function(scope) {
if (scope.useNative) {
return;
}
if (isIE && typeof window.CustomEvent !== "function") {
if (!window.CustomEvent) {
window.CustomEvent = function(inType, params) {
params = params || {};
var e = document.createEvent("CustomEvent");
@@ -2260,7 +2260,7 @@ window.CustomElements.addModule(function(scope) {
});
});
}
if (isIE && typeof window.CustomEvent !== "function") {
if (!window.CustomEvent) {
window.CustomEvent = function(inType, params) {
params = params || {};
var e = document.createEvent("CustomEvent");
@@ -2368,6 +2368,37 @@ if (typeof HTMLTemplateElement === "undefined") {
})();
}
(function(scope) {
"use strict";
if (!window.performance) {
var start = Date.now();
window.performance = {
now: function() {
return Date.now() - start;
}
};
}
if (!window.requestAnimationFrame) {
window.requestAnimationFrame = function() {
var nativeRaf = window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame;
return nativeRaf ? function(callback) {
return nativeRaf(function() {
callback(performance.now());
});
} : function(callback) {
return window.setTimeout(callback, 1e3 / 60);
};
}();
}
if (!window.cancelAnimationFrame) {
window.cancelAnimationFrame = function() {
return window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || function(id) {
clearTimeout(id);
};
}();
}
})(window.WebComponents);
(function(scope) {
var style = document.createElement("style");
style.textContent = "" + "body {" + "transition: opacity ease-in 0.2s;" + " } \n" + "body[unresolved] {" + "opacity: 0; display: block; overflow: hidden; position: relative;" + " } \n";

File diff suppressed because one or more lines are too long

View File

@@ -7,7 +7,7 @@
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
// @version 0.7.12
// @version 0.7.13
window.WebComponents = window.WebComponents || {};
(function(scope) {
@@ -3159,18 +3159,29 @@ if (WebComponents.flags.shadow) {
"use strict";
var Element = scope.wrappers.Element;
var HTMLElement = scope.wrappers.HTMLElement;
var registerObject = scope.registerObject;
var registerWrapper = scope.registerWrapper;
var defineWrapGetter = scope.defineWrapGetter;
var unsafeUnwrap = scope.unsafeUnwrap;
var wrap = scope.wrap;
var mixin = scope.mixin;
var SVG_NS = "http://www.w3.org/2000/svg";
var OriginalSVGElement = window.SVGElement;
var svgTitleElement = document.createElementNS(SVG_NS, "title");
var SVGTitleElement = registerObject(svgTitleElement);
var SVGElement = Object.getPrototypeOf(SVGTitleElement.prototype).constructor;
if (!("classList" in svgTitleElement)) {
var descr = Object.getOwnPropertyDescriptor(Element.prototype, "classList");
Object.defineProperty(HTMLElement.prototype, "classList", descr);
delete Element.prototype.classList;
}
defineWrapGetter(SVGElement, "ownerSVGElement");
function SVGElement(node) {
Element.call(this, node);
}
SVGElement.prototype = Object.create(Element.prototype);
mixin(SVGElement.prototype, {
get ownerSVGElement() {
return wrap(unsafeUnwrap(this).ownerSVGElement);
}
});
registerWrapper(OriginalSVGElement, SVGElement, document.createElementNS(SVG_NS, "title"));
scope.wrappers.SVGElement = SVGElement;
})(window.ShadowDOMPolyfill);
(function(scope) {
@@ -3309,20 +3320,27 @@ if (WebComponents.flags.shadow) {
})(window.ShadowDOMPolyfill);
(function(scope) {
"use strict";
var Node = scope.wrappers.Node;
var GetElementsByInterface = scope.GetElementsByInterface;
var NonElementParentNodeInterface = scope.NonElementParentNodeInterface;
var ParentNodeInterface = scope.ParentNodeInterface;
var SelectorsInterface = scope.SelectorsInterface;
var mixin = scope.mixin;
var registerObject = scope.registerObject;
var DocumentFragment = registerObject(document.createDocumentFragment());
var registerWrapper = scope.registerWrapper;
var OriginalDocumentFragment = window.DocumentFragment;
function DocumentFragment(node) {
Node.call(this, node);
}
DocumentFragment.prototype = Object.create(Node.prototype);
mixin(DocumentFragment.prototype, ParentNodeInterface);
mixin(DocumentFragment.prototype, SelectorsInterface);
mixin(DocumentFragment.prototype, GetElementsByInterface);
mixin(DocumentFragment.prototype, NonElementParentNodeInterface);
registerWrapper(OriginalDocumentFragment, DocumentFragment, document.createDocumentFragment());
scope.wrappers.DocumentFragment = DocumentFragment;
var Comment = registerObject(document.createComment(""));
scope.wrappers.Comment = Comment;
scope.wrappers.DocumentFragment = DocumentFragment;
})(window.ShadowDOMPolyfill);
(function(scope) {
"use strict";
@@ -4694,7 +4712,7 @@ if (WebComponents.flags.shadow) {
}
}
};
var selectorRe = /([^{]*)({[\s\S]*?})/gim, cssCommentRe = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim, cssCommentNextSelectorRe = /\/\*\s*@polyfill ([^*]*\*+([^/*][^*]*\*+)*\/)([^{]*?){/gim, cssContentNextSelectorRe = /polyfill-next-selector[^}]*content\:[\s]*?['"](.*?)['"][;\s]*}([^{]*?){/gim, cssCommentRuleRe = /\/\*\s@polyfill-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim, cssContentRuleRe = /(polyfill-rule)[^}]*(content\:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim, cssCommentUnscopedRuleRe = /\/\*\s@polyfill-unscoped-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim, cssContentUnscopedRuleRe = /(polyfill-unscoped-rule)[^}]*(content\:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim, cssPseudoRe = /::(x-[^\s{,(]*)/gim, cssPartRe = /::part\(([^)]*)\)/gim, polyfillHost = "-shadowcsshost", polyfillHostContext = "-shadowcsscontext", parenSuffix = ")(?:\\((" + "(?:\\([^)(]*\\)|[^)(]*)+?" + ")\\))?([^,{]*)";
var selectorRe = /([^{]*)({[\s\S]*?})/gim, cssCommentRe = /\/\*[^*]*\*+([^\/*][^*]*\*+)*\//gim, cssCommentNextSelectorRe = /\/\*\s*@polyfill ([^*]*\*+([^\/*][^*]*\*+)*\/)([^{]*?){/gim, cssContentNextSelectorRe = /polyfill-next-selector[^}]*content\:[\s]*?['"](.*?)['"][;\s]*}([^{]*?){/gim, cssCommentRuleRe = /\/\*\s@polyfill-rule([^*]*\*+([^\/*][^*]*\*+)*)\//gim, cssContentRuleRe = /(polyfill-rule)[^}]*(content\:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim, cssCommentUnscopedRuleRe = /\/\*\s@polyfill-unscoped-rule([^*]*\*+([^\/*][^*]*\*+)*)\//gim, cssContentUnscopedRuleRe = /(polyfill-unscoped-rule)[^}]*(content\:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim, cssPseudoRe = /::(x-[^\s{,(]*)/gim, cssPartRe = /::part\(([^)]*)\)/gim, polyfillHost = "-shadowcsshost", polyfillHostContext = "-shadowcsscontext", parenSuffix = ")(?:\\((" + "(?:\\([^)(]*\\)|[^)(]*)+?" + ")\\))?([^,{]*)";
var cssColonHostRe = new RegExp("(" + polyfillHost + parenSuffix, "gim"), cssColonHostContextRe = new RegExp("(" + polyfillHostContext + parenSuffix, "gim"), selectorReSuffix = "([>\\s~+[.,{:][\\s\\S]*)?$", colonHostRe = /\:host/gim, colonHostContextRe = /\:host-context/gim, polyfillHostNoCombinator = polyfillHost + "-no-combinator", polyfillHostRe = new RegExp(polyfillHost, "gim"), polyfillHostContextRe = new RegExp(polyfillHostContext, "gim"), shadowDOMSelectorsRe = [ />>>/g, /::shadow/g, /::content/g, /\/deep\//g, /\/shadow\//g, /\/shadow-deep\//g, /\^\^/g, /\^/g ];
function stylesToCssText(styles, preserveComments) {
var cssText = "";
@@ -5379,7 +5397,7 @@ if (WebComponents.flags.shadow) {
};
}
scope.URL = jURL;
})(this);
})(self);
(function(global) {
var registrationsTable = new WeakMap();
@@ -5678,7 +5696,7 @@ if (WebComponents.flags.shadow) {
};
global.JsMutationObserver = JsMutationObserver;
if (!global.MutationObserver) global.MutationObserver = JsMutationObserver;
})(window);
})(self);
window.HTMLImports = window.HTMLImports || {
flags: {}
@@ -6398,7 +6416,7 @@ window.HTMLImports.addModule(function(scope) {
if (scope.useNative) {
return;
}
if (isIE && typeof window.CustomEvent !== "function") {
if (!window.CustomEvent) {
window.CustomEvent = function(inType, params) {
params = params || {};
var e = document.createEvent("CustomEvent");
@@ -7029,7 +7047,7 @@ window.CustomElements.addModule(function(scope) {
});
});
}
if (isIE && typeof window.CustomEvent !== "function") {
if (!window.CustomEvent) {
window.CustomEvent = function(inType, params) {
params = params || {};
var e = document.createEvent("CustomEvent");

11
webcomponents.min.js vendored

File diff suppressed because one or more lines are too long