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 Sep 25, 2015
1 parent 72a3054 commit 338574d
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 15 deletions.
4 changes: 2 additions & 2 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 @@ -161,7 +161,7 @@
mixinProp: /(?:^|[\s;])--[^;{]*?:[^{;]*?{[^}]*?}(?:[;\n]|$)?/gim,
mixinApply: /@apply[\s]*\([^)]*?\)[\s]*(?:[;\n]|$)?/gim,
varApply: /[^;:]*?:[^;]*var[^;]*(?:[;\n]|$)?/gim,
keyframesRule: /^@[^\s]*keyframes/,
keyframesRule: /^@[^\s]*keyframes/
},

VAR_START: '--',
Expand Down
8 changes: 4 additions & 4 deletions src/lib/dom-api.html
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@
DomApi.ClassList = function(host) {
this.domApi = host;
this.node = host.node;
}
};

DomApi.ClassList.prototype = {
add: function() {
Expand All @@ -546,7 +546,7 @@
return this.node.classList.contains.apply(this.node.classList,
arguments);
}
}
};

// changes and accessors...
if (!Settings.useShadow) {
Expand Down Expand Up @@ -738,7 +738,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 All @@ -752,7 +752,7 @@
return n$ ? Array.prototype.slice.call(n$) : [];
};

DomApi.prototype._distributeParent = function() {}
DomApi.prototype._distributeParent = function() {};

Object.defineProperties(DomApi.prototype, {

Expand Down
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 @@ -438,7 +438,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 @@ -443,7 +443,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 @@ -115,7 +115,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 338574d

Please sign in to comment.