Merge pull request #2482 from arturparkhisenko/master

Added missing semicolons, removed some unused variables
This commit is contained in:
Daniel Freedman 2015-12-09 11:40:26 -08:00
commit cb56fb75ce
10 changed files with 15 additions and 16 deletions

View File

@ -174,11 +174,11 @@ 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',
AT_START: '@'

View File

@ -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>

View File

@ -29,7 +29,7 @@ Polymer.domInnerHTML = (function() {
case '>':
return '&gt;';
case '"':
return '&quot;'
return '&quot;';
case '\u00A0':
return '&nbsp;';
}

View File

@ -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

View File

@ -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];

View File

@ -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 = {

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -454,7 +454,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,

View File

@ -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);