Skip to content
This repository was archived by the owner on Feb 11, 2021. It is now read-only.

Commit 82fdbd1

Browse files
committed
Merge pull request #97 from kborchers/cleanup
Cleaning up some missing semicolons, trailing commas and an unnecessary var decleration
2 parents c001d78 + c2ca01b commit 82fdbd1

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

src/PointerEvent.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
}
3131

3232
function PointerEvent(inType, inDict) {
33-
var inDict = inDict || {};
33+
inDict = inDict || {};
3434
// According to the w3c spec,
3535
// http://www.w3.org/TR/DOM-Level-3-Events/#events-MouseEvent-button
3636
// MouseEvent.button == 0 can mean either no mouse button depressed, or the
@@ -103,7 +103,7 @@
103103
if (!HAS_BUTTONS) {
104104
// IE 10 has buttons on MouseEvent.prototype as a getter w/o any setting
105105
// mechanism
106-
Object.defineProperty(e, 'buttons', {get: function(){ return buttons }, enumerable: true});
106+
Object.defineProperty(e, 'buttons', {get: function(){ return buttons; }, enumerable: true});
107107
}
108108

109109
// Spec requires that pointers without pressure specified use 0.5 for down

src/capture.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
if (!Element.prototype.setPointerCapture) {
3636
Object.defineProperties(Element.prototype, {
3737
'setPointerCapture': {
38-
value: s,
38+
value: s
3939
},
4040
'releasePointerCapture': {
41-
value: r,
41+
value: r
4242
}
4343
});
4444
}

src/dispatcher.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
},
6565
// EVENTS
6666
down: function(inEvent) {
67-
this.fireEvent('pointerdown', inEvent)
67+
this.fireEvent('pointerdown', inEvent);
6868
},
6969
move: function(inEvent) {
7070
this.fireEvent('pointermove', inEvent);
@@ -74,15 +74,15 @@
7474
},
7575
enter: function(inEvent) {
7676
inEvent.bubbles = false;
77-
this.fireEvent('pointerenter', inEvent)
77+
this.fireEvent('pointerenter', inEvent);
7878
},
7979
leave: function(inEvent) {
8080
inEvent.bubbles = false;
8181
this.fireEvent('pointerleave', inEvent);
8282
},
8383
over: function(inEvent) {
8484
inEvent.bubbles = true;
85-
this.fireEvent('pointerover', inEvent)
85+
this.fireEvent('pointerover', inEvent);
8686
},
8787
out: function(inEvent) {
8888
inEvent.bubbles = true;

src/installer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
} else if (m.type === 'attributes') {
105105
this.elementChanged(m.target, m.oldValue);
106106
}
107-
},
107+
}
108108
};
109109

110110
if (!MO) {

src/touch.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
EMITTER: 'none',
8383
XSCROLLER: 'pan-x',
8484
YSCROLLER: 'pan-y',
85-
SCROLLER: /^(?:pan-x pan-y)|(?:pan-y pan-x)|auto$/,
85+
SCROLLER: /^(?:pan-x pan-y)|(?:pan-y pan-x)|auto$/
8686
},
8787
touchActionToScrollType: function(touchAction) {
8888
var t = touchAction;
@@ -305,7 +305,7 @@
305305
var fn = (function(lts, lt){
306306
var i = lts.indexOf(lt);
307307
if (i > -1) {
308-
lts.splice(i, 1)
308+
lts.splice(i, 1);
309309
}
310310
}).bind(null, lts, lt);
311311
setTimeout(fn, DEDUP_TIMEOUT);

0 commit comments

Comments
 (0)