This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @record | |
*/ | |
var LocalDomWithBackground = function(){}; | |
/** | |
* @type HTMLElement | |
*/ | |
LocalDomWithBackground.prototype.backgroundFrontLayer; | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
try { | |
Promise.resolve(true).then(function{ | |
undefinedVariable = []; | |
console.log("Boo"); | |
}, function(err) { | |
console.log(err) | |
}) | |
} catch (err) { | |
console.log(err.stack) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// findBodyElements returns a document fragment containing | |
// all elements that should be moved into body from a document-order | |
// array of elements in head, searching from startIndex to endIndex | |
function findBodyElements(flatHead, startIndex, endIndex) { | |
if (endIndex === -1) { | |
endIndex = flatHead.length; | |
} | |
var container = dom5.constructors.fragment(); | |
for (var headidx = start, el; headidx < endIndex; headidx++) { | |
el = flatHead[headidx]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// BowerJSON represents a bower.json file | |
type BowerJSON struct { | |
Dependencies *map[string]string `json:"dependencies, omitempty"` | |
DevDependencies *map[string]string `json:"devDependencies, omitempty"` | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Polymer.fc = { | |
properties: { | |
_elevation: { | |
type: Number | |
} | |
}, | |
observers: ["_calculateElevation(focused, disabled, active, pressed, receivedFocusFromKeyboard)"], | |
hostAttributes: { | |
role: "button", | |
tabindex: "0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Polymer.Pd = { | |
properties: { | |
pressed: { | |
type: Boolean, | |
readOnly: !0, | |
value: !1, | |
reflectToAttribute: !0, | |
observer: "_pressedChanged" | |
}, | |
toggles: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ErrorSwallowingFSResolver(config) { | |
FSResolver.call(this, config); | |
} | |
ErrorSwallowingFSResolver.prototype = Object.create(FSResolver.prototype); | |
ErrorSwallowingFSResolver.prototype.accept = function(uri, deferred) { | |
var reject = deferred.reject; | |
deferred.reject = function(arg) { | |
deferred.resolve(""); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install -g git+ssh://[email protected]:PolymerLabs/web-component-shards.git | |
git clone https://github.com/PolymerElements/paper-button.git | |
cd paper-button | |
git checkout sampleShards | |
bower install | |
web-component-shards -e index.html -e paper-button.html | |
cd dist | |
http-server | |
# Open up a browser and check out the functional iron-component-page. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var SocketConnection = function() { | |
this.connection = instanceConnection(); | |
}; | |
// This is a globally shared connection. | |
var singletonConnection = null; | |
window.SocketConnectionBehavior = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<paper-tabs scrollable id="active" attr-for-selected="value" selectable selected="{{active}}"> | |
<template is="dom-repeat" items="[[docElements]]"> | |
<paper-tab value="[[item.is]]">[[item.is]]</paper-tab> | |
</template> | |
<template is="dom-repeat" items="[[docBehaviors]]"> | |
<paper-tab value="[[item.is]]">[[item.is]]</paper-tab> | |
</template> | |
</paper-tabs> |