release v0.7.3

This commit is contained in:
Daniel Freedman
2015-06-03 16:30:52 -07:00
15 changed files with 111 additions and 99 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.2
// @version 0.7.3
if (typeof WeakMap === "undefined") {
(function() {
var defineProperty = Object.defineProperty;
@@ -362,9 +362,9 @@ window.CustomElements = window.CustomElements || {
scope.initializeModules = initializeModules;
scope.hasNative = Boolean(document.registerElement);
scope.useNative = !flags.register && scope.hasNative && !window.ShadowDOMPolyfill && (!window.HTMLImports || HTMLImports.useNative);
})(CustomElements);
})(window.CustomElements);
CustomElements.addModule(function(scope) {
window.CustomElements.addModule(function(scope) {
var IMPORT_LINK_TYPE = window.HTMLImports ? HTMLImports.IMPORT_LINK_TYPE : "none";
function forSubtree(node, cb) {
findAllElements(node, function(e) {
@@ -419,7 +419,7 @@ CustomElements.addModule(function(scope) {
scope.forSubtree = forSubtree;
});
CustomElements.addModule(function(scope) {
window.CustomElements.addModule(function(scope) {
var flags = scope.flags;
var forSubtree = scope.forSubtree;
var forDocumentTree = scope.forDocumentTree;
@@ -615,7 +615,7 @@ CustomElements.addModule(function(scope) {
scope.takeRecords = takeRecords;
});
CustomElements.addModule(function(scope) {
window.CustomElements.addModule(function(scope) {
var flags = scope.flags;
function upgrade(node) {
if (!node.__upgraded__ && node.nodeType === Node.ELEMENT_NODE) {
@@ -675,7 +675,7 @@ CustomElements.addModule(function(scope) {
scope.implementPrototype = implementPrototype;
});
CustomElements.addModule(function(scope) {
window.CustomElements.addModule(function(scope) {
var isIE11OrOlder = scope.isIE11OrOlder;
var upgradeDocumentTree = scope.upgradeDocumentTree;
var upgradeAll = scope.upgradeAll;

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.2
// @version 0.7.3
if (typeof WeakMap === "undefined") {
(function() {
var defineProperty = Object.defineProperty;
@@ -484,7 +484,7 @@ window.HTMLImports = window.HTMLImports || {
scope.rootDocument = rootDocument;
scope.whenReady = whenReady;
scope.isIE = isIE;
})(HTMLImports);
})(window.HTMLImports);
(function(scope) {
var modules = [];
@@ -498,9 +498,9 @@ window.HTMLImports = window.HTMLImports || {
};
scope.addModule = addModule;
scope.initializeModules = initializeModules;
})(HTMLImports);
})(window.HTMLImports);
HTMLImports.addModule(function(scope) {
window.HTMLImports.addModule(function(scope) {
var CSS_URL_REGEXP = /(url\()([^)]*)(\))/g;
var CSS_IMPORT_REGEXP = /(@import[\s]+(?!url\())([^;]*)(;)/g;
var path = {
@@ -530,7 +530,7 @@ HTMLImports.addModule(function(scope) {
scope.path = path;
});
HTMLImports.addModule(function(scope) {
window.HTMLImports.addModule(function(scope) {
var xhr = {
async: true,
ok: function(request) {
@@ -562,7 +562,7 @@ HTMLImports.addModule(function(scope) {
scope.xhr = xhr;
});
HTMLImports.addModule(function(scope) {
window.HTMLImports.addModule(function(scope) {
var xhr = scope.xhr;
var flags = scope.flags;
var Loader = function(onLoad, onComplete) {
@@ -655,7 +655,7 @@ HTMLImports.addModule(function(scope) {
scope.Loader = Loader;
});
HTMLImports.addModule(function(scope) {
window.HTMLImports.addModule(function(scope) {
var Observer = function(addCallback) {
this.addCallback = addCallback;
this.mo = new MutationObserver(this.handler.bind(this));
@@ -688,7 +688,7 @@ HTMLImports.addModule(function(scope) {
scope.Observer = Observer;
});
HTMLImports.addModule(function(scope) {
window.HTMLImports.addModule(function(scope) {
var path = scope.path;
var rootDocument = scope.rootDocument;
var flags = scope.flags;
@@ -920,7 +920,7 @@ HTMLImports.addModule(function(scope) {
scope.IMPORT_SELECTOR = IMPORT_SELECTOR;
});
HTMLImports.addModule(function(scope) {
window.HTMLImports.addModule(function(scope) {
var flags = scope.flags;
var IMPORT_LINK_TYPE = scope.IMPORT_LINK_TYPE;
var IMPORT_SELECTOR = scope.IMPORT_SELECTOR;
@@ -1019,7 +1019,7 @@ HTMLImports.addModule(function(scope) {
scope.importLoader = importLoader;
});
HTMLImports.addModule(function(scope) {
window.HTMLImports.addModule(function(scope) {
var parser = scope.parser;
var importer = scope.importer;
var dynamic = {
@@ -1075,4 +1075,4 @@ HTMLImports.addModule(function(scope) {
} else {
document.addEventListener("DOMContentLoaded", bootstrap);
}
})(HTMLImports);
})(window.HTMLImports);

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.2
// @version 0.7.3
if (typeof WeakMap === "undefined") {
(function() {
var defineProperty = Object.defineProperty;

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.2
// @version 0.7.3
if (typeof WeakMap === "undefined") {
(function() {
var defineProperty = Object.defineProperty;
@@ -113,7 +113,7 @@ window.ShadowDOMPolyfill = {};
defineProperty(object, name, nonEnumerableDataDescriptor);
}
getOwnPropertyNames(window);
function getWrapperConstructor(node) {
function getWrapperConstructor(node, opt_instance) {
var nativePrototype = node.__proto__ || Object.getPrototypeOf(node);
if (isFirefox) {
try {
@@ -126,7 +126,7 @@ window.ShadowDOMPolyfill = {};
if (wrapperConstructor) return wrapperConstructor;
var parentWrapperConstructor = getWrapperConstructor(nativePrototype);
var GeneratedWrapper = createWrapperConstructor(parentWrapperConstructor);
registerInternal(nativePrototype, GeneratedWrapper, node);
registerInternal(nativePrototype, GeneratedWrapper, opt_instance);
return GeneratedWrapper;
}
function addForwardingProperties(nativePrototype, wrapperPrototype) {
@@ -186,8 +186,10 @@ window.ShadowDOMPolyfill = {};
}
var descriptor = getDescriptor(source, name);
var getter, setter;
if (allowMethod && typeof descriptor.value === "function") {
target[name] = getMethod(name);
if (typeof descriptor.value === "function") {
if (allowMethod) {
target[name] = getMethod(name);
}
continue;
}
var isEvent = isEventHandlerName(name);
@@ -250,7 +252,11 @@ window.ShadowDOMPolyfill = {};
function wrap(impl) {
if (impl === null) return null;
assert(isNative(impl));
return impl.__wrapper8e3dd93a60__ || (impl.__wrapper8e3dd93a60__ = new (getWrapperConstructor(impl))(impl));
var wrapper = impl.__wrapper8e3dd93a60__;
if (wrapper != null) {
return wrapper;
}
return impl.__wrapper8e3dd93a60__ = new (getWrapperConstructor(impl, impl))(impl);
}
function unwrap(wrapper) {
if (wrapper === null) return null;

4
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.2",
"version": "0.7.3",
"homepage": "http://webcomponents.org",
"authors": [
"The Polymer Authors"

View File

@@ -1,33 +1,33 @@
BUILD LOG
---------
Build Time: 2015-05-26T17:48:07-0700
Build Time: 2015-06-03T16:30:51-0700
NODEJS INFORMATION
==================
nodejs: v2.0.2
gulp: 3.8.11
gulp: 3.9.0
gulp-audit: 1.0.0
gulp-concat: 2.5.2
gulp-header: 1.2.2
run-sequence: 1.1.0
web-component-tester: 3.1.3
gulp-uglify: 1.2.0
run-sequence: 1.1.0
web-component-tester: 3.1.4
REPO REVISIONS
==============
webcomponentsjs: 131ea2174ec5c4d4a48e6637cc0751dc5dee43a3
webcomponentsjs: da802598acc91d10d0205cf6130d15bd75fa12d1
BUILD HASHES
============
CustomElements.js: 62dbb3db0856c43bb43a90c1f9ac400cb568d2e2
CustomElements.min.js: 482d41c9b901e21b8be5dde1f334579bea9b3278
HTMLImports.js: 6aa44b4dbe224ba04011308ffcfc7bac4d2ecf45
HTMLImports.min.js: ac0190e185cf6a3fcd9b092b2143b8796c2b2db7
MutationObserver.js: 6d07c7fab2a59b4d3face7bf3b61474514d506ec
MutationObserver.min.js: 3e3ec659c0b2c27d5717f2155507d76f06abf103
ShadowDOM.js: aeb06cb34b92f5fd5f91e169a8545043a4c06e4e
ShadowDOM.min.js: a615e963dfa831edadd0457327a7c3818693e19c
webcomponents-lite.js: 5ebee320c939e16c7747d354a7b59c5eaf6372b3
webcomponents-lite.min.js: 3c4c323b2584c009791a41a351491f610e2cc253
webcomponents.js: a028071aec0b77be6f1c562552f199ea57f73869
webcomponents.min.js: 57b88a10558b60e24f309ff6dc914d9100977895
CustomElements.js: 89978a89cdf96d509b8e399bf8e6aff4431c41ea
CustomElements.min.js: e8d9ac81e56720cccef8e1ba01400d4f403531b1
HTMLImports.js: 5a393509ce18b7ee605cd4474750e783a6afa5a5
HTMLImports.min.js: 6ce4c8c1340b3ceea4a2c05942cf4e8ef685fae3
MutationObserver.js: 60074504bbdf487e192215647375bffb70888997
MutationObserver.min.js: 76658a548e3785ee931d45fad4a0bd2b81594aa3
ShadowDOM.js: 35dceaf9eca85b593764a05b5324173e84f07608
ShadowDOM.min.js: 80ab65804971765c3450864b24f108efd8bd6086
webcomponents-lite.js: 94a081e93a4b2c65e645787b6e69c2a0aac204ff
webcomponents-lite.min.js: 80158c463eb7fda32995d908b9fbabcf95595c0e
webcomponents.js: de93a7fee51ce01dd61546598f12e481755c44ca
webcomponents.min.js: 0a70cae0a9589e463aa36d1ec9c1fbc87c1b1c5c

View File

@@ -1,6 +1,6 @@
{
"name": "webcomponents.js",
"version": "0.7.2",
"version": "0.7.3",
"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.2
// @version 0.7.3
window.WebComponents = window.WebComponents || {};
(function(scope) {
@@ -52,7 +52,7 @@ window.WebComponents = window.WebComponents || {};
window.CustomElements.flags.register = flags.register;
}
scope.flags = flags;
})(WebComponents);
})(window.WebComponents);
(function(scope) {
"use strict";
@@ -164,7 +164,7 @@ window.WebComponents = window.WebComponents || {};
case "scheme data":
if ("?" == c) {
query = "?";
this._query = "?";
state = "query";
} else if ("#" == c) {
this._fragment = "#";
@@ -1052,7 +1052,7 @@ window.HTMLImports = window.HTMLImports || {
scope.rootDocument = rootDocument;
scope.whenReady = whenReady;
scope.isIE = isIE;
})(HTMLImports);
})(window.HTMLImports);
(function(scope) {
var modules = [];
@@ -1066,9 +1066,9 @@ window.HTMLImports = window.HTMLImports || {
};
scope.addModule = addModule;
scope.initializeModules = initializeModules;
})(HTMLImports);
})(window.HTMLImports);
HTMLImports.addModule(function(scope) {
window.HTMLImports.addModule(function(scope) {
var CSS_URL_REGEXP = /(url\()([^)]*)(\))/g;
var CSS_IMPORT_REGEXP = /(@import[\s]+(?!url\())([^;]*)(;)/g;
var path = {
@@ -1098,7 +1098,7 @@ HTMLImports.addModule(function(scope) {
scope.path = path;
});
HTMLImports.addModule(function(scope) {
window.HTMLImports.addModule(function(scope) {
var xhr = {
async: true,
ok: function(request) {
@@ -1130,7 +1130,7 @@ HTMLImports.addModule(function(scope) {
scope.xhr = xhr;
});
HTMLImports.addModule(function(scope) {
window.HTMLImports.addModule(function(scope) {
var xhr = scope.xhr;
var flags = scope.flags;
var Loader = function(onLoad, onComplete) {
@@ -1223,7 +1223,7 @@ HTMLImports.addModule(function(scope) {
scope.Loader = Loader;
});
HTMLImports.addModule(function(scope) {
window.HTMLImports.addModule(function(scope) {
var Observer = function(addCallback) {
this.addCallback = addCallback;
this.mo = new MutationObserver(this.handler.bind(this));
@@ -1256,7 +1256,7 @@ HTMLImports.addModule(function(scope) {
scope.Observer = Observer;
});
HTMLImports.addModule(function(scope) {
window.HTMLImports.addModule(function(scope) {
var path = scope.path;
var rootDocument = scope.rootDocument;
var flags = scope.flags;
@@ -1488,7 +1488,7 @@ HTMLImports.addModule(function(scope) {
scope.IMPORT_SELECTOR = IMPORT_SELECTOR;
});
HTMLImports.addModule(function(scope) {
window.HTMLImports.addModule(function(scope) {
var flags = scope.flags;
var IMPORT_LINK_TYPE = scope.IMPORT_LINK_TYPE;
var IMPORT_SELECTOR = scope.IMPORT_SELECTOR;
@@ -1587,7 +1587,7 @@ HTMLImports.addModule(function(scope) {
scope.importLoader = importLoader;
});
HTMLImports.addModule(function(scope) {
window.HTMLImports.addModule(function(scope) {
var parser = scope.parser;
var importer = scope.importer;
var dynamic = {
@@ -1643,7 +1643,7 @@ HTMLImports.addModule(function(scope) {
} else {
document.addEventListener("DOMContentLoaded", bootstrap);
}
})(HTMLImports);
})(window.HTMLImports);
window.CustomElements = window.CustomElements || {
flags: {}
@@ -1664,9 +1664,9 @@ window.CustomElements = window.CustomElements || {
scope.initializeModules = initializeModules;
scope.hasNative = Boolean(document.registerElement);
scope.useNative = !flags.register && scope.hasNative && !window.ShadowDOMPolyfill && (!window.HTMLImports || HTMLImports.useNative);
})(CustomElements);
})(window.CustomElements);
CustomElements.addModule(function(scope) {
window.CustomElements.addModule(function(scope) {
var IMPORT_LINK_TYPE = window.HTMLImports ? HTMLImports.IMPORT_LINK_TYPE : "none";
function forSubtree(node, cb) {
findAllElements(node, function(e) {
@@ -1721,7 +1721,7 @@ CustomElements.addModule(function(scope) {
scope.forSubtree = forSubtree;
});
CustomElements.addModule(function(scope) {
window.CustomElements.addModule(function(scope) {
var flags = scope.flags;
var forSubtree = scope.forSubtree;
var forDocumentTree = scope.forDocumentTree;
@@ -1917,7 +1917,7 @@ CustomElements.addModule(function(scope) {
scope.takeRecords = takeRecords;
});
CustomElements.addModule(function(scope) {
window.CustomElements.addModule(function(scope) {
var flags = scope.flags;
function upgrade(node) {
if (!node.__upgraded__ && node.nodeType === Node.ELEMENT_NODE) {
@@ -1977,7 +1977,7 @@ CustomElements.addModule(function(scope) {
scope.implementPrototype = implementPrototype;
});
CustomElements.addModule(function(scope) {
window.CustomElements.addModule(function(scope) {
var isIE11OrOlder = scope.isIE11OrOlder;
var upgradeDocumentTree = scope.upgradeDocumentTree;
var upgradeAll = scope.upgradeAll;

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.2
// @version 0.7.3
window.WebComponents = window.WebComponents || {};
(function(scope) {
@@ -158,7 +158,7 @@ if (WebComponents.flags.shadow) {
defineProperty(object, name, nonEnumerableDataDescriptor);
}
getOwnPropertyNames(window);
function getWrapperConstructor(node) {
function getWrapperConstructor(node, opt_instance) {
var nativePrototype = node.__proto__ || Object.getPrototypeOf(node);
if (isFirefox) {
try {
@@ -171,7 +171,7 @@ if (WebComponents.flags.shadow) {
if (wrapperConstructor) return wrapperConstructor;
var parentWrapperConstructor = getWrapperConstructor(nativePrototype);
var GeneratedWrapper = createWrapperConstructor(parentWrapperConstructor);
registerInternal(nativePrototype, GeneratedWrapper, node);
registerInternal(nativePrototype, GeneratedWrapper, opt_instance);
return GeneratedWrapper;
}
function addForwardingProperties(nativePrototype, wrapperPrototype) {
@@ -231,8 +231,10 @@ if (WebComponents.flags.shadow) {
}
var descriptor = getDescriptor(source, name);
var getter, setter;
if (allowMethod && typeof descriptor.value === "function") {
target[name] = getMethod(name);
if (typeof descriptor.value === "function") {
if (allowMethod) {
target[name] = getMethod(name);
}
continue;
}
var isEvent = isEventHandlerName(name);
@@ -295,7 +297,11 @@ if (WebComponents.flags.shadow) {
function wrap(impl) {
if (impl === null) return null;
assert(isNative(impl));
return impl.__wrapper8e3dd93a60__ || (impl.__wrapper8e3dd93a60__ = new (getWrapperConstructor(impl))(impl));
var wrapper = impl.__wrapper8e3dd93a60__;
if (wrapper != null) {
return wrapper;
}
return impl.__wrapper8e3dd93a60__ = new (getWrapperConstructor(impl, impl))(impl);
}
function unwrap(wrapper) {
if (wrapper === null) return null;
@@ -4963,7 +4969,7 @@ if (WebComponents.flags.shadow) {
case "scheme data":
if ("?" == c) {
query = "?";
this._query = "?";
state = "query";
} else if ("#" == c) {
this._fragment = "#";
@@ -5815,7 +5821,7 @@ window.HTMLImports = window.HTMLImports || {
scope.rootDocument = rootDocument;
scope.whenReady = whenReady;
scope.isIE = isIE;
})(HTMLImports);
})(window.HTMLImports);
(function(scope) {
var modules = [];
@@ -5829,9 +5835,9 @@ window.HTMLImports = window.HTMLImports || {
};
scope.addModule = addModule;
scope.initializeModules = initializeModules;
})(HTMLImports);
})(window.HTMLImports);
HTMLImports.addModule(function(scope) {
window.HTMLImports.addModule(function(scope) {
var CSS_URL_REGEXP = /(url\()([^)]*)(\))/g;
var CSS_IMPORT_REGEXP = /(@import[\s]+(?!url\())([^;]*)(;)/g;
var path = {
@@ -5861,7 +5867,7 @@ HTMLImports.addModule(function(scope) {
scope.path = path;
});
HTMLImports.addModule(function(scope) {
window.HTMLImports.addModule(function(scope) {
var xhr = {
async: true,
ok: function(request) {
@@ -5893,7 +5899,7 @@ HTMLImports.addModule(function(scope) {
scope.xhr = xhr;
});
HTMLImports.addModule(function(scope) {
window.HTMLImports.addModule(function(scope) {
var xhr = scope.xhr;
var flags = scope.flags;
var Loader = function(onLoad, onComplete) {
@@ -5986,7 +5992,7 @@ HTMLImports.addModule(function(scope) {
scope.Loader = Loader;
});
HTMLImports.addModule(function(scope) {
window.HTMLImports.addModule(function(scope) {
var Observer = function(addCallback) {
this.addCallback = addCallback;
this.mo = new MutationObserver(this.handler.bind(this));
@@ -6019,7 +6025,7 @@ HTMLImports.addModule(function(scope) {
scope.Observer = Observer;
});
HTMLImports.addModule(function(scope) {
window.HTMLImports.addModule(function(scope) {
var path = scope.path;
var rootDocument = scope.rootDocument;
var flags = scope.flags;
@@ -6251,7 +6257,7 @@ HTMLImports.addModule(function(scope) {
scope.IMPORT_SELECTOR = IMPORT_SELECTOR;
});
HTMLImports.addModule(function(scope) {
window.HTMLImports.addModule(function(scope) {
var flags = scope.flags;
var IMPORT_LINK_TYPE = scope.IMPORT_LINK_TYPE;
var IMPORT_SELECTOR = scope.IMPORT_SELECTOR;
@@ -6350,7 +6356,7 @@ HTMLImports.addModule(function(scope) {
scope.importLoader = importLoader;
});
HTMLImports.addModule(function(scope) {
window.HTMLImports.addModule(function(scope) {
var parser = scope.parser;
var importer = scope.importer;
var dynamic = {
@@ -6406,7 +6412,7 @@ HTMLImports.addModule(function(scope) {
} else {
document.addEventListener("DOMContentLoaded", bootstrap);
}
})(HTMLImports);
})(window.HTMLImports);
window.CustomElements = window.CustomElements || {
flags: {}
@@ -6427,9 +6433,9 @@ window.CustomElements = window.CustomElements || {
scope.initializeModules = initializeModules;
scope.hasNative = Boolean(document.registerElement);
scope.useNative = !flags.register && scope.hasNative && !window.ShadowDOMPolyfill && (!window.HTMLImports || HTMLImports.useNative);
})(CustomElements);
})(window.CustomElements);
CustomElements.addModule(function(scope) {
window.CustomElements.addModule(function(scope) {
var IMPORT_LINK_TYPE = window.HTMLImports ? HTMLImports.IMPORT_LINK_TYPE : "none";
function forSubtree(node, cb) {
findAllElements(node, function(e) {
@@ -6484,7 +6490,7 @@ CustomElements.addModule(function(scope) {
scope.forSubtree = forSubtree;
});
CustomElements.addModule(function(scope) {
window.CustomElements.addModule(function(scope) {
var flags = scope.flags;
var forSubtree = scope.forSubtree;
var forDocumentTree = scope.forDocumentTree;
@@ -6680,7 +6686,7 @@ CustomElements.addModule(function(scope) {
scope.takeRecords = takeRecords;
});
CustomElements.addModule(function(scope) {
window.CustomElements.addModule(function(scope) {
var flags = scope.flags;
function upgrade(node) {
if (!node.__upgraded__ && node.nodeType === Node.ELEMENT_NODE) {
@@ -6740,7 +6746,7 @@ CustomElements.addModule(function(scope) {
scope.implementPrototype = implementPrototype;
});
CustomElements.addModule(function(scope) {
window.CustomElements.addModule(function(scope) {
var isIE11OrOlder = scope.isIE11OrOlder;
var upgradeDocumentTree = scope.upgradeDocumentTree;
var upgradeAll = scope.upgradeAll;

11
webcomponents.min.js vendored

File diff suppressed because one or more lines are too long