mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
added missing semicolons, removed some unused variables
This commit is contained in:
parent
bba4c2d23e
commit
00ed7970c2
@ -31,7 +31,7 @@ Polymer.CssParse = (function() {
|
||||
_lex: function(text) {
|
||||
var root = {start: 0, end: text.length};
|
||||
var n = root;
|
||||
for (var i=0, s=0, l=text.length; i < l; i++) {
|
||||
for (var i=0, l=text.length; i < l; i++) {
|
||||
switch (text[i]) {
|
||||
case this.OPEN_BRACE:
|
||||
//console.group(i);
|
||||
@ -174,10 +174,10 @@ Polymer.CssParse = (function() {
|
||||
customProp: /(?:^|[\s;])--[^;{]*?:[^{};]*?(?:[;\n]|$)/gim,
|
||||
mixinProp: /(?:^|[\s;])?--[^;{]*?:[^{;]*?{[^}]*?}(?:[;\n]|$)?/gim,
|
||||
mixinApply: /@apply[\s]*\([^)]*?\)[\s]*(?:[;\n]|$)?/gim,
|
||||
varApply: /[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,
|
||||
varApply: /[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,
|
||||
keyframesRule: /^@[^\s]*keyframes/,
|
||||
multipleSpaces: /\s+/g
|
||||
},
|
||||
},
|
||||
|
||||
VAR_START: '--',
|
||||
MEDIA_START: '@media',
|
||||
|
@ -767,7 +767,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
var forwardMethod = function(method) {
|
||||
DomApi.prototype[method] = function() {
|
||||
return this.node[method].apply(this.node, arguments);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
forwardMethods(['cloneNode', 'appendChild', 'insertBefore',
|
||||
@ -791,7 +791,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
var doc = this.node instanceof Document ? this.node :
|
||||
this.node.ownerDocument;
|
||||
return doc.importNode(externalNode, deep);
|
||||
}
|
||||
};
|
||||
|
||||
DomApi.prototype.getDestinationInsertionPoints = function() {
|
||||
var n$ = this.node.getDestinationInsertionPoints &&
|
||||
@ -875,11 +875,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
node.__domApi = new DomApi(node, patch);
|
||||
}
|
||||
return node.__domApi;
|
||||
};
|
||||
}
|
||||
|
||||
function hasDomApi(node) {
|
||||
return Boolean(node.__domApi);
|
||||
};
|
||||
}
|
||||
|
||||
Polymer.dom = function(obj, patch) {
|
||||
if (obj instanceof Event) {
|
||||
@ -1009,4 +1009,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
|
||||
})();
|
||||
|
||||
</script>
|
||||
</script>
|
||||
|
@ -29,7 +29,7 @@ Polymer.domInnerHTML = (function() {
|
||||
case '>':
|
||||
return '>';
|
||||
case '"':
|
||||
return '"'
|
||||
return '"';
|
||||
case '\u00A0':
|
||||
return ' ';
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
var lcModules = {};
|
||||
var findModule = function(id) {
|
||||
return modules[id] || lcModules[id.toLowerCase()];
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* The `dom-module` element registers the dom it contains to the name given
|
||||
|
@ -193,7 +193,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
|
||||
// remote api
|
||||
|
||||
shadowize = function() {
|
||||
var shadowize = function() {
|
||||
var idx = Number(this.attributes.idx.value);
|
||||
//alert(idx);
|
||||
var node = drillable[idx];
|
||||
|
@ -12,7 +12,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
|
||||
Polymer.StyleCache = function() {
|
||||
this.cache = {};
|
||||
}
|
||||
};
|
||||
|
||||
Polymer.StyleCache.prototype = {
|
||||
|
||||
|
@ -97,7 +97,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
elementStyles: function(element, callback) {
|
||||
var styles = element._styles;
|
||||
var cssText = '';
|
||||
for (var i=0, l=styles.length, s, text; (i<l) && (s=styles[i]); i++) {
|
||||
for (var i=0, l=styles.length, s; (i<l) && (s=styles[i]); i++) {
|
||||
var rules = styleUtil.rulesForStyle(s);
|
||||
cssText += nativeShadow ?
|
||||
styleUtil.toCssText(rules, callback) :
|
||||
|
@ -17,7 +17,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
(document._currentScript || document.currentScript).parentNode;
|
||||
if (module.localName === 'dom-module') {
|
||||
var id = module.id || module.getAttribute('name')
|
||||
|| module.getAttribute('is')
|
||||
|| module.getAttribute('is');
|
||||
this.is = id;
|
||||
}
|
||||
}
|
||||
|
@ -452,7 +452,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
}
|
||||
|
||||
function ensureComposedParent(parent, children) {
|
||||
for (var i=0, n; i < children.length; i++) {
|
||||
for (var i=0; i < children.length; i++) {
|
||||
children[i]._composedParent = parent;
|
||||
}
|
||||
}
|
||||
|
@ -452,7 +452,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
this.fire('up', Gestures.findOriginalTarget(e), e.changedTouches[0]);
|
||||
},
|
||||
fire: function(type, target, event) {
|
||||
var self = this;
|
||||
Gestures.fire(target, type, {
|
||||
x: event.clientX,
|
||||
y: event.clientY,
|
||||
|
@ -125,7 +125,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
style: style,
|
||||
_scopeSelector: this._scopeSelector,
|
||||
_styleProperties: this._styleProperties
|
||||
}
|
||||
};
|
||||
scopeData.key.customStyle = {};
|
||||
this.mixin(scopeData.key.customStyle, this.customStyle);
|
||||
scope._styleCache.store(this.is, info, scopeData.key, this._styles);
|
||||
|
Loading…
Reference in New Issue
Block a user