Skip to content

Commit

Permalink
added missing semicolons, removed some unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
arturparkhisenko committed Nov 29, 2015
1 parent bba4c2d commit 00ed797
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 17 deletions.
6 changes: 3 additions & 3 deletions src/lib/css-parse.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
_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);
Expand Down Expand Up @@ -174,10 +174,10 @@
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',
Expand Down
10 changes: 5 additions & 5 deletions src/lib/dom-api.html
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@
var forwardMethod = function(method) {
DomApi.prototype[method] = function() {
return this.node[method].apply(this.node, arguments);
}
};
};

forwardMethods(['cloneNode', 'appendChild', 'insertBefore',
Expand All @@ -791,7 +791,7 @@
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 &&
Expand Down Expand Up @@ -875,11 +875,11 @@
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) {
Expand Down Expand Up @@ -1009,4 +1009,4 @@

})();

</script>
</script>
2 changes: 1 addition & 1 deletion src/lib/dom-innerHTML.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
case '>':
return '&gt;';
case '"':
return '&quot;'
return '&quot;';
case '\u00A0':
return '&nbsp;';
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/dom-module.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/lib/experimental/sinspect.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@

// remote api

shadowize = function() {
var shadowize = function() {
var idx = Number(this.attributes.idx.value);
//alert(idx);
var node = drillable[idx];
Expand Down
2 changes: 1 addition & 1 deletion src/lib/style-cache.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

Polymer.StyleCache = function() {
this.cache = {};
}
};

Polymer.StyleCache.prototype = {

Expand Down
2 changes: 1 addition & 1 deletion src/lib/style-transformer.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
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) :
Expand Down
2 changes: 1 addition & 1 deletion src/micro/tag.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
(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;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/mini/shady.html
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@
}

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;
}
}
Expand Down
1 change: 0 additions & 1 deletion src/standard/gestures.html
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,6 @@
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,
Expand Down
2 changes: 1 addition & 1 deletion src/standard/x-styling.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
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);
Expand Down

0 comments on commit 00ed797

Please sign in to comment.