mirror of
https://github.com/loot/loot.github.io.git
synced 2026-07-27 14:13:30 -07:00
Updated to Polymer v0.5.4.
This is mostly for a bunch of polyfill fixes, but the GitHub and YouTube icons were removed, so a generic video collection icon was used for the latter, and an SVG conversion of GitHub's own "mark" icon has been added for use.
This commit is contained in:
+2
-2
@@ -35,7 +35,7 @@
|
||||
</a></paper-item>
|
||||
<div class="subheader">On GitHub</div>
|
||||
<paper-item><a href="https://github.com/loot">
|
||||
<core-icon icon="social:post-github"></core-icon>Code
|
||||
<core-icon src="/github-mark.svg"></core-icon>Code
|
||||
</a></paper-item>
|
||||
<paper-item><a href="https://github.com/loot/loot.github.io/wiki">
|
||||
<core-icon icon="subject"></core-icon>Wiki
|
||||
@@ -48,7 +48,7 @@
|
||||
<core-icon icon="communication:live-help"></core-icon>IRC Channel
|
||||
</a></paper-item>
|
||||
<paper-item><a href="/tutorials/">
|
||||
<core-icon icon="social:post-youtube"></core-icon>Unofficial Tutorials
|
||||
<core-icon icon="av:video-collection"></core-icon>Unofficial Tutorials
|
||||
</a></paper-item>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
+5
-5
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "webcomponentsjs",
|
||||
"main": "webcomponents.js",
|
||||
"version": "0.5.2",
|
||||
"version": "0.5.4",
|
||||
"homepage": "http://webcomponents.org",
|
||||
"authors": [
|
||||
"The Polymer Authors"
|
||||
@@ -11,13 +11,13 @@
|
||||
],
|
||||
"license": "BSD",
|
||||
"ignore": [],
|
||||
"_release": "0.5.2",
|
||||
"_release": "0.5.4",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "0.5.2",
|
||||
"commit": "4f469f65d3fa3c03a44326d138331003fa340337"
|
||||
"tag": "0.5.4",
|
||||
"commit": "d31b29c8c3bf4ad7ddd9a84236f04864003bc40d"
|
||||
},
|
||||
"_source": "git://github.com/Polymer/webcomponentsjs.git",
|
||||
"_target": "^0.5.0",
|
||||
"_target": "^0.5",
|
||||
"_originalSource": "Polymer/webcomponentsjs"
|
||||
}
|
||||
+1
-1
@@ -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.5.1-1
|
||||
// @version 0.5.4
|
||||
if (typeof WeakMap === "undefined") {
|
||||
(function() {
|
||||
var defineProperty = Object.defineProperty;
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+13
-7
@@ -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.5.1-1
|
||||
// @version 0.5.4
|
||||
if (typeof WeakMap === "undefined") {
|
||||
(function() {
|
||||
var defineProperty = Object.defineProperty;
|
||||
@@ -467,9 +467,9 @@ window.HTMLImports = window.HTMLImports || {
|
||||
whenReady(function() {
|
||||
HTMLImports.ready = true;
|
||||
HTMLImports.readyTime = new Date().getTime();
|
||||
rootDocument.dispatchEvent(new CustomEvent("HTMLImportsLoaded", {
|
||||
bubbles: true
|
||||
}));
|
||||
var evt = rootDocument.createEvent("CustomEvent");
|
||||
evt.initCustomEvent("HTMLImportsLoaded", true, true, {});
|
||||
rootDocument.dispatchEvent(evt);
|
||||
});
|
||||
scope.IMPORT_LINK_TYPE = IMPORT_LINK_TYPE;
|
||||
scope.useNative = useNative;
|
||||
@@ -520,7 +520,7 @@ HTMLImports.addModule(function(scope) {
|
||||
});
|
||||
|
||||
HTMLImports.addModule(function(scope) {
|
||||
xhr = {
|
||||
var xhr = {
|
||||
async: true,
|
||||
ok: function(request) {
|
||||
return request.status >= 200 && request.status < 300 || request.status === 304 || request.status === 0;
|
||||
@@ -597,7 +597,13 @@ HTMLImports.addModule(function(scope) {
|
||||
},
|
||||
fetch: function(url, elt) {
|
||||
flags.load && console.log("fetch", url, elt);
|
||||
if (url.match(/^data:/)) {
|
||||
if (!url) {
|
||||
setTimeout(function() {
|
||||
this.receive(url, elt, {
|
||||
error: "href must be specified"
|
||||
}, null);
|
||||
}.bind(this), 0);
|
||||
} else if (url.match(/^data:/)) {
|
||||
var pieces = url.split(",");
|
||||
var header = pieces[0];
|
||||
var body = pieces[1];
|
||||
@@ -1001,7 +1007,7 @@ HTMLImports.addModule(function(scope) {
|
||||
var importer = scope.importer;
|
||||
var dynamic = {
|
||||
added: function(nodes) {
|
||||
var owner, parsed;
|
||||
var owner, parsed, loading;
|
||||
for (var i = 0, l = nodes.length, n; i < l && (n = nodes[i]); i++) {
|
||||
if (!owner) {
|
||||
owner = n.ownerDocument;
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+41
-37
@@ -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.5.1-1
|
||||
// @version 0.5.4
|
||||
if (typeof WeakMap === "undefined") {
|
||||
(function() {
|
||||
var defineProperty = Object.defineProperty;
|
||||
@@ -1959,7 +1959,7 @@ window.ShadowDOMPolyfill = {};
|
||||
for (var i = 0, n; i < nodes.length; i++) {
|
||||
n = nodes[i];
|
||||
if (n.nodeType === Node.TEXT_NODE) {
|
||||
if (!modNode && !n.data.length) this.removeNode(n); else if (!modNode) modNode = n; else {
|
||||
if (!modNode && !n.data.length) this.removeChild(n); else if (!modNode) modNode = n; else {
|
||||
s += n.data;
|
||||
remNodes.push(n);
|
||||
}
|
||||
@@ -2299,44 +2299,46 @@ window.ShadowDOMPolyfill = {};
|
||||
|
||||
(function(scope) {
|
||||
"use strict";
|
||||
var setWrapper = scope.setWrapper;
|
||||
var unsafeUnwrap = scope.unsafeUnwrap;
|
||||
var enqueueMutation = scope.enqueueMutation;
|
||||
function getClass(el) {
|
||||
return unsafeUnwrap(el).getAttribute("class");
|
||||
}
|
||||
function enqueueClassAttributeChange(el, oldValue) {
|
||||
enqueueMutation(el, "attributes", {
|
||||
name: "class",
|
||||
namespace: null,
|
||||
oldValue: oldValue
|
||||
});
|
||||
}
|
||||
function invalidateClass(el) {
|
||||
scope.invalidateRendererBasedOnAttribute(el, "class");
|
||||
}
|
||||
function DOMTokenList(impl, ownerElement) {
|
||||
setWrapper(impl, this);
|
||||
this.ownerElement_ = ownerElement;
|
||||
}
|
||||
DOMTokenList.prototype = {
|
||||
constructor: DOMTokenList,
|
||||
get length() {
|
||||
return unsafeUnwrap(this).length;
|
||||
},
|
||||
item: function(index) {
|
||||
return unsafeUnwrap(this).item(index);
|
||||
},
|
||||
contains: function(token) {
|
||||
return unsafeUnwrap(this).contains(token);
|
||||
},
|
||||
add: function() {
|
||||
unsafeUnwrap(this).add.apply(unsafeUnwrap(this), arguments);
|
||||
invalidateClass(this.ownerElement_);
|
||||
},
|
||||
remove: function() {
|
||||
unsafeUnwrap(this).remove.apply(unsafeUnwrap(this), arguments);
|
||||
invalidateClass(this.ownerElement_);
|
||||
},
|
||||
toggle: function(token) {
|
||||
var rv = unsafeUnwrap(this).toggle.apply(unsafeUnwrap(this), arguments);
|
||||
invalidateClass(this.ownerElement_);
|
||||
return rv;
|
||||
},
|
||||
toString: function() {
|
||||
return unsafeUnwrap(this).toString();
|
||||
function changeClass(tokenList, method, args) {
|
||||
var ownerElement = tokenList.ownerElement_;
|
||||
if (ownerElement == null) {
|
||||
return method.apply(tokenList, args);
|
||||
}
|
||||
var oldValue = getClass(ownerElement);
|
||||
var retv = method.apply(tokenList, args);
|
||||
if (getClass(ownerElement) !== oldValue) {
|
||||
enqueueClassAttributeChange(ownerElement, oldValue);
|
||||
invalidateClass(ownerElement);
|
||||
}
|
||||
return retv;
|
||||
}
|
||||
var oldAdd = DOMTokenList.prototype.add;
|
||||
DOMTokenList.prototype.add = function() {
|
||||
changeClass(this, oldAdd, arguments);
|
||||
};
|
||||
var oldRemove = DOMTokenList.prototype.remove;
|
||||
DOMTokenList.prototype.remove = function() {
|
||||
changeClass(this, oldRemove, arguments);
|
||||
};
|
||||
var oldToggle = DOMTokenList.prototype.toggle;
|
||||
DOMTokenList.prototype.toggle = function() {
|
||||
return changeClass(this, oldToggle, arguments);
|
||||
};
|
||||
scope.wrappers.DOMTokenList = DOMTokenList;
|
||||
})(window.ShadowDOMPolyfill);
|
||||
|
||||
(function(scope) {
|
||||
@@ -2344,7 +2346,6 @@ window.ShadowDOMPolyfill = {};
|
||||
var ChildNodeInterface = scope.ChildNodeInterface;
|
||||
var GetElementsByInterface = scope.GetElementsByInterface;
|
||||
var Node = scope.wrappers.Node;
|
||||
var DOMTokenList = scope.wrappers.DOMTokenList;
|
||||
var ParentNodeInterface = scope.ParentNodeInterface;
|
||||
var SelectorsInterface = scope.SelectorsInterface;
|
||||
var addWrapNodeListMethod = scope.addWrapNodeListMethod;
|
||||
@@ -2407,7 +2408,9 @@ window.ShadowDOMPolyfill = {};
|
||||
get classList() {
|
||||
var list = classListTable.get(this);
|
||||
if (!list) {
|
||||
classListTable.set(this, list = new DOMTokenList(unsafeUnwrap(this).classList, this));
|
||||
list = unsafeUnwrap(this).classList;
|
||||
list.ownerElement_ = this;
|
||||
classListTable.set(this, list);
|
||||
}
|
||||
return list;
|
||||
},
|
||||
@@ -4011,7 +4014,8 @@ window.ShadowDOMPolyfill = {};
|
||||
};
|
||||
forwardMethodsToWrapper([ window.HTMLDocument || window.Document ], [ "registerElement" ]);
|
||||
}
|
||||
forwardMethodsToWrapper([ window.HTMLBodyElement, window.HTMLDocument || window.Document, window.HTMLHeadElement, window.HTMLHtmlElement ], [ "appendChild", "compareDocumentPosition", "contains", "getElementsByClassName", "getElementsByTagName", "getElementsByTagNameNS", "insertBefore", "querySelector", "querySelectorAll", "removeChild", "replaceChild" ].concat(matchesNames));
|
||||
forwardMethodsToWrapper([ window.HTMLBodyElement, window.HTMLDocument || window.Document, window.HTMLHeadElement, window.HTMLHtmlElement ], [ "appendChild", "compareDocumentPosition", "contains", "getElementsByClassName", "getElementsByTagName", "getElementsByTagNameNS", "insertBefore", "querySelector", "querySelectorAll", "removeChild", "replaceChild" ]);
|
||||
forwardMethodsToWrapper([ window.HTMLBodyElement, window.HTMLHeadElement, window.HTMLHtmlElement ], matchesNames);
|
||||
forwardMethodsToWrapper([ window.HTMLDocument || window.Document ], [ "adoptNode", "importNode", "contains", "createComment", "createDocumentFragment", "createElement", "createElementNS", "createEvent", "createEventNS", "createRange", "createTextNode", "elementFromPoint", "getElementById", "getElementsByName", "getSelection" ]);
|
||||
mixin(Document.prototype, GetElementsByInterface);
|
||||
mixin(Document.prototype, ParentNodeInterface);
|
||||
|
||||
+3
-3
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "webcomponentsjs",
|
||||
"main": "webcomponents.js",
|
||||
"version": "0.5.2",
|
||||
"version": "0.5.4",
|
||||
"homepage": "http://webcomponents.org",
|
||||
"authors": [
|
||||
"The Polymer Authors"
|
||||
|
||||
+16
-16
@@ -1,31 +1,31 @@
|
||||
BUILD LOG
|
||||
---------
|
||||
Build Time: 2014-12-11T12:45:39-0800
|
||||
Build Time: 2015-01-23T16:15:30-0800
|
||||
|
||||
NODEJS INFORMATION
|
||||
==================
|
||||
nodejs: v0.10.33
|
||||
nodejs: v0.10.35
|
||||
gulp: 3.8.10
|
||||
gulp-audit: 1.0.0
|
||||
gulp-concat: 2.4.2
|
||||
gulp-concat: 2.4.3
|
||||
gulp-header: 1.2.2
|
||||
gulp-uglify: 1.0.2
|
||||
gulp-uglify: 1.1.0
|
||||
run-sequence: 1.0.2
|
||||
web-component-tester: 2.0.1
|
||||
web-component-tester: 2.0.5
|
||||
|
||||
REPO REVISIONS
|
||||
==============
|
||||
webcomponentsjs: d83cc676df65dc61db22bca47d33da679391f5a0
|
||||
webcomponentsjs: 9f91fd5d9d68a96821283869efac008535446218
|
||||
|
||||
BUILD HASHES
|
||||
============
|
||||
CustomElements.js: b221f7741515b570df70fd1c50b398bb8f731b81
|
||||
CustomElements.min.js: 6a55999d9f4895525d35c5248e2f409f176162a6
|
||||
HTMLImports.js: 72dd4ea891dc3c5256c569992288eca9f5c5e450
|
||||
HTMLImports.min.js: 1677819e83722c7d163a571598d8d36cdc8ae690
|
||||
ShadowDOM.js: a1cce2304031d5acb440978761b346b98d06e1a4
|
||||
ShadowDOM.min.js: 9371908d889872eb7e8e320e8877c394eb906732
|
||||
webcomponents-lite.js: 7b6c8fbd7f67a2bd04b797a72e808b16ab54518f
|
||||
webcomponents-lite.min.js: 41b033fa7e52bf612686f222d5a496d48bd2909c
|
||||
webcomponents.js: 523f45c65c94d71543729f7e3d32ec4b7a48ae5b
|
||||
webcomponents.min.js: 645b22d4c22bf6eaf470bc03d819d396661ac439
|
||||
CustomElements.js: 4580193ee75072cb380d439fbf75a62deb9ca233
|
||||
CustomElements.min.js: 4b2c4f065126f25cfdf5f6c23f12169c9c18baa2
|
||||
HTMLImports.js: 736763ab217d150ccb625f42362fc03158fcaeb1
|
||||
HTMLImports.min.js: 7df544b9a6ac9f93dcdefa3eb6eaaea68c228967
|
||||
ShadowDOM.js: 1f6f01526cbc098563bf5b2d217090bf210a42f3
|
||||
ShadowDOM.min.js: 06f2ab5b486297bc9e3ce2a8b5cfe2130aa6ccbb
|
||||
webcomponents-lite.js: 644f816326e29842a8fb7cb0fa82636540d46257
|
||||
webcomponents-lite.min.js: 3f54f511045bd45d89df2c5bbcade19a242e2a64
|
||||
webcomponents.js: 9ea79ac36b5875de59b8277c5867bff72e3dab6c
|
||||
webcomponents.min.js: 97774057dcb06111606cf1b48623b7441a1d3f6a
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "webcomponents.js",
|
||||
"version": "0.5.1-1",
|
||||
"version": "0.5.4",
|
||||
"description": "webcomponents.js",
|
||||
"main": "gulpfile.js",
|
||||
"directories": {
|
||||
|
||||
+13
-8
@@ -7,14 +7,13 @@
|
||||
* 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.5.1-1
|
||||
// @version 0.5.4
|
||||
window.WebComponents = window.WebComponents || {};
|
||||
|
||||
(function(scope) {
|
||||
var flags = scope.flags || {};
|
||||
var file = "webcomponents.js";
|
||||
var script = document.querySelector('script[src*="' + file + '"]');
|
||||
var flags = {};
|
||||
if (!flags.noOpts) {
|
||||
location.search.slice(1).split("&").forEach(function(o) {
|
||||
o = o.split("=");
|
||||
@@ -511,9 +510,9 @@ window.HTMLImports = window.HTMLImports || {
|
||||
whenReady(function() {
|
||||
HTMLImports.ready = true;
|
||||
HTMLImports.readyTime = new Date().getTime();
|
||||
rootDocument.dispatchEvent(new CustomEvent("HTMLImportsLoaded", {
|
||||
bubbles: true
|
||||
}));
|
||||
var evt = rootDocument.createEvent("CustomEvent");
|
||||
evt.initCustomEvent("HTMLImportsLoaded", true, true, {});
|
||||
rootDocument.dispatchEvent(evt);
|
||||
});
|
||||
scope.IMPORT_LINK_TYPE = IMPORT_LINK_TYPE;
|
||||
scope.useNative = useNative;
|
||||
@@ -564,7 +563,7 @@ HTMLImports.addModule(function(scope) {
|
||||
});
|
||||
|
||||
HTMLImports.addModule(function(scope) {
|
||||
xhr = {
|
||||
var xhr = {
|
||||
async: true,
|
||||
ok: function(request) {
|
||||
return request.status >= 200 && request.status < 300 || request.status === 304 || request.status === 0;
|
||||
@@ -641,7 +640,13 @@ HTMLImports.addModule(function(scope) {
|
||||
},
|
||||
fetch: function(url, elt) {
|
||||
flags.load && console.log("fetch", url, elt);
|
||||
if (url.match(/^data:/)) {
|
||||
if (!url) {
|
||||
setTimeout(function() {
|
||||
this.receive(url, elt, {
|
||||
error: "href must be specified"
|
||||
}, null);
|
||||
}.bind(this), 0);
|
||||
} else if (url.match(/^data:/)) {
|
||||
var pieces = url.split(",");
|
||||
var header = pieces[0];
|
||||
var body = pieces[1];
|
||||
@@ -1045,7 +1050,7 @@ HTMLImports.addModule(function(scope) {
|
||||
var importer = scope.importer;
|
||||
var dynamic = {
|
||||
added: function(nodes) {
|
||||
var owner, parsed;
|
||||
var owner, parsed, loading;
|
||||
for (var i = 0, l = nodes.length, n; i < l && (n = nodes[i]); i++) {
|
||||
if (!owner) {
|
||||
owner = n.ownerDocument;
|
||||
|
||||
File diff suppressed because one or more lines are too long
+53
-44
@@ -7,14 +7,13 @@
|
||||
* 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.5.1-1
|
||||
// @version 0.5.4
|
||||
window.WebComponents = window.WebComponents || {};
|
||||
|
||||
(function(scope) {
|
||||
var flags = scope.flags || {};
|
||||
var file = "webcomponents.js";
|
||||
var script = document.querySelector('script[src*="' + file + '"]');
|
||||
var flags = {};
|
||||
if (!flags.noOpts) {
|
||||
location.search.slice(1).split("&").forEach(function(o) {
|
||||
o = o.split("=");
|
||||
@@ -1993,7 +1992,7 @@ if (WebComponents.flags.shadow) {
|
||||
for (var i = 0, n; i < nodes.length; i++) {
|
||||
n = nodes[i];
|
||||
if (n.nodeType === Node.TEXT_NODE) {
|
||||
if (!modNode && !n.data.length) this.removeNode(n); else if (!modNode) modNode = n; else {
|
||||
if (!modNode && !n.data.length) this.removeChild(n); else if (!modNode) modNode = n; else {
|
||||
s += n.data;
|
||||
remNodes.push(n);
|
||||
}
|
||||
@@ -2328,51 +2327,52 @@ if (WebComponents.flags.shadow) {
|
||||
})(window.ShadowDOMPolyfill);
|
||||
(function(scope) {
|
||||
"use strict";
|
||||
var setWrapper = scope.setWrapper;
|
||||
var unsafeUnwrap = scope.unsafeUnwrap;
|
||||
var enqueueMutation = scope.enqueueMutation;
|
||||
function getClass(el) {
|
||||
return unsafeUnwrap(el).getAttribute("class");
|
||||
}
|
||||
function enqueueClassAttributeChange(el, oldValue) {
|
||||
enqueueMutation(el, "attributes", {
|
||||
name: "class",
|
||||
namespace: null,
|
||||
oldValue: oldValue
|
||||
});
|
||||
}
|
||||
function invalidateClass(el) {
|
||||
scope.invalidateRendererBasedOnAttribute(el, "class");
|
||||
}
|
||||
function DOMTokenList(impl, ownerElement) {
|
||||
setWrapper(impl, this);
|
||||
this.ownerElement_ = ownerElement;
|
||||
}
|
||||
DOMTokenList.prototype = {
|
||||
constructor: DOMTokenList,
|
||||
get length() {
|
||||
return unsafeUnwrap(this).length;
|
||||
},
|
||||
item: function(index) {
|
||||
return unsafeUnwrap(this).item(index);
|
||||
},
|
||||
contains: function(token) {
|
||||
return unsafeUnwrap(this).contains(token);
|
||||
},
|
||||
add: function() {
|
||||
unsafeUnwrap(this).add.apply(unsafeUnwrap(this), arguments);
|
||||
invalidateClass(this.ownerElement_);
|
||||
},
|
||||
remove: function() {
|
||||
unsafeUnwrap(this).remove.apply(unsafeUnwrap(this), arguments);
|
||||
invalidateClass(this.ownerElement_);
|
||||
},
|
||||
toggle: function(token) {
|
||||
var rv = unsafeUnwrap(this).toggle.apply(unsafeUnwrap(this), arguments);
|
||||
invalidateClass(this.ownerElement_);
|
||||
return rv;
|
||||
},
|
||||
toString: function() {
|
||||
return unsafeUnwrap(this).toString();
|
||||
function changeClass(tokenList, method, args) {
|
||||
var ownerElement = tokenList.ownerElement_;
|
||||
if (ownerElement == null) {
|
||||
return method.apply(tokenList, args);
|
||||
}
|
||||
var oldValue = getClass(ownerElement);
|
||||
var retv = method.apply(tokenList, args);
|
||||
if (getClass(ownerElement) !== oldValue) {
|
||||
enqueueClassAttributeChange(ownerElement, oldValue);
|
||||
invalidateClass(ownerElement);
|
||||
}
|
||||
return retv;
|
||||
}
|
||||
var oldAdd = DOMTokenList.prototype.add;
|
||||
DOMTokenList.prototype.add = function() {
|
||||
changeClass(this, oldAdd, arguments);
|
||||
};
|
||||
var oldRemove = DOMTokenList.prototype.remove;
|
||||
DOMTokenList.prototype.remove = function() {
|
||||
changeClass(this, oldRemove, arguments);
|
||||
};
|
||||
var oldToggle = DOMTokenList.prototype.toggle;
|
||||
DOMTokenList.prototype.toggle = function() {
|
||||
return changeClass(this, oldToggle, arguments);
|
||||
};
|
||||
scope.wrappers.DOMTokenList = DOMTokenList;
|
||||
})(window.ShadowDOMPolyfill);
|
||||
(function(scope) {
|
||||
"use strict";
|
||||
var ChildNodeInterface = scope.ChildNodeInterface;
|
||||
var GetElementsByInterface = scope.GetElementsByInterface;
|
||||
var Node = scope.wrappers.Node;
|
||||
var DOMTokenList = scope.wrappers.DOMTokenList;
|
||||
var ParentNodeInterface = scope.ParentNodeInterface;
|
||||
var SelectorsInterface = scope.SelectorsInterface;
|
||||
var addWrapNodeListMethod = scope.addWrapNodeListMethod;
|
||||
@@ -2435,7 +2435,9 @@ if (WebComponents.flags.shadow) {
|
||||
get classList() {
|
||||
var list = classListTable.get(this);
|
||||
if (!list) {
|
||||
classListTable.set(this, list = new DOMTokenList(unsafeUnwrap(this).classList, this));
|
||||
list = unsafeUnwrap(this).classList;
|
||||
list.ownerElement_ = this;
|
||||
classListTable.set(this, list);
|
||||
}
|
||||
return list;
|
||||
},
|
||||
@@ -4012,7 +4014,8 @@ if (WebComponents.flags.shadow) {
|
||||
};
|
||||
forwardMethodsToWrapper([ window.HTMLDocument || window.Document ], [ "registerElement" ]);
|
||||
}
|
||||
forwardMethodsToWrapper([ window.HTMLBodyElement, window.HTMLDocument || window.Document, window.HTMLHeadElement, window.HTMLHtmlElement ], [ "appendChild", "compareDocumentPosition", "contains", "getElementsByClassName", "getElementsByTagName", "getElementsByTagNameNS", "insertBefore", "querySelector", "querySelectorAll", "removeChild", "replaceChild" ].concat(matchesNames));
|
||||
forwardMethodsToWrapper([ window.HTMLBodyElement, window.HTMLDocument || window.Document, window.HTMLHeadElement, window.HTMLHtmlElement ], [ "appendChild", "compareDocumentPosition", "contains", "getElementsByClassName", "getElementsByTagName", "getElementsByTagNameNS", "insertBefore", "querySelector", "querySelectorAll", "removeChild", "replaceChild" ]);
|
||||
forwardMethodsToWrapper([ window.HTMLBodyElement, window.HTMLHeadElement, window.HTMLHtmlElement ], matchesNames);
|
||||
forwardMethodsToWrapper([ window.HTMLDocument || window.Document ], [ "adoptNode", "importNode", "contains", "createComment", "createDocumentFragment", "createElement", "createElementNS", "createEvent", "createEventNS", "createRange", "createTextNode", "elementFromPoint", "getElementById", "getElementsByName", "getSelection" ]);
|
||||
mixin(Document.prototype, GetElementsByInterface);
|
||||
mixin(Document.prototype, ParentNodeInterface);
|
||||
@@ -5115,9 +5118,9 @@ window.HTMLImports = window.HTMLImports || {
|
||||
whenReady(function() {
|
||||
HTMLImports.ready = true;
|
||||
HTMLImports.readyTime = new Date().getTime();
|
||||
rootDocument.dispatchEvent(new CustomEvent("HTMLImportsLoaded", {
|
||||
bubbles: true
|
||||
}));
|
||||
var evt = rootDocument.createEvent("CustomEvent");
|
||||
evt.initCustomEvent("HTMLImportsLoaded", true, true, {});
|
||||
rootDocument.dispatchEvent(evt);
|
||||
});
|
||||
scope.IMPORT_LINK_TYPE = IMPORT_LINK_TYPE;
|
||||
scope.useNative = useNative;
|
||||
@@ -5168,7 +5171,7 @@ HTMLImports.addModule(function(scope) {
|
||||
});
|
||||
|
||||
HTMLImports.addModule(function(scope) {
|
||||
xhr = {
|
||||
var xhr = {
|
||||
async: true,
|
||||
ok: function(request) {
|
||||
return request.status >= 200 && request.status < 300 || request.status === 304 || request.status === 0;
|
||||
@@ -5245,7 +5248,13 @@ HTMLImports.addModule(function(scope) {
|
||||
},
|
||||
fetch: function(url, elt) {
|
||||
flags.load && console.log("fetch", url, elt);
|
||||
if (url.match(/^data:/)) {
|
||||
if (!url) {
|
||||
setTimeout(function() {
|
||||
this.receive(url, elt, {
|
||||
error: "href must be specified"
|
||||
}, null);
|
||||
}.bind(this), 0);
|
||||
} else if (url.match(/^data:/)) {
|
||||
var pieces = url.split(",");
|
||||
var header = pieces[0];
|
||||
var body = pieces[1];
|
||||
@@ -5649,7 +5658,7 @@ HTMLImports.addModule(function(scope) {
|
||||
var importer = scope.importer;
|
||||
var dynamic = {
|
||||
added: function(nodes) {
|
||||
var owner, parsed;
|
||||
var owner, parsed, loading;
|
||||
for (var i = 0, l = nodes.length, n; i < l && (n = nodes[i]); i++) {
|
||||
if (!owner) {
|
||||
owner = n.ownerDocument;
|
||||
|
||||
+5
-5
File diff suppressed because one or more lines are too long
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
version="1.1"
|
||||
width="41"
|
||||
height="41"
|
||||
viewBox="0 0 41 41">
|
||||
<path
|
||||
d="M 20.36,0 C 9.1175,0 0,9.11625 0,20.3625 c 0,8.995 5.83375,16.6275 13.925,19.32125 1.01875,0.18625 1.39,-0.4425 1.39,-0.9825 0,-0.48375 -0.0175,-1.76375 -0.0275,-3.4625 -5.66375,1.23 -6.85875,-2.73 -6.85875,-2.73 C 7.5025,30.15625 6.1675,29.53 6.1675,29.53 c -1.84875,-1.2625 0.14,-1.2375 0.14,-1.2375 2.04375,0.14375 3.11875,2.09875 3.11875,2.09875 1.81625,3.11125 4.76625,2.2125 5.92625,1.69125 0.185,-1.315 0.71125,-2.2125 1.2925,-2.72125 C 12.12375,28.84625 7.37,27.1 7.37,19.2975 c 0,-2.22375 0.79375,-4.04 2.09625,-5.46375 -0.21,-0.515 -0.90875,-2.585 0.2,-5.38875 0,0 1.70875,-0.5475 5.59875,2.08625 C 16.88875,10.08 18.63125,9.855 20.3625,9.84625 22.0925,9.855 23.83375,10.08 25.46,10.53125 29.3475,7.8975 31.05375,8.445 31.05375,8.445 c 1.11125,2.80375 0.4125,4.87375 0.20375,5.38875 1.305,1.42375 2.0925,3.24 2.0925,5.46375 0,7.8225 -4.76125,9.54375 -9.29625,10.0475 0.73,0.62875 1.38125,1.87125 1.38125,3.77125 0,2.72125 -0.025,4.9175 -0.025,5.585 0,0.545 0.3675,1.17875 1.4,0.98 C 34.895,36.9825 40.72375,29.35625 40.72375,20.3625 40.72375,9.11625 31.60625,0 20.36,0"
|
||||
style="fill:#1b1817;fill-opacity:1;stroke:none" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
@@ -9,6 +9,7 @@
|
||||
<link rel="import" href="/bower_components/core-icons/core-icons.html">
|
||||
<link rel="import" href="/bower_components/core-icons/social-icons.html">
|
||||
<link rel="import" href="/bower_components/core-icons/communication-icons.html">
|
||||
<link rel="import" href="/bower_components/core-icons/av-icons.html">
|
||||
<link rel="import" href="/bower_components/core-input/core-input.html">
|
||||
<link rel="import" href="/bower_components/core-menu/core-menu.html">
|
||||
|
||||
|
||||
+8
-19135
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user