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

Commit 1fd0169

Browse files
committed
Merge pull request #100 from Polymer/master
8/15 master -> stable
2 parents e489891 + 9018371 commit 1fd0169

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

pointerevents.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
var src = script.attributes.src.value;
3131
var basePath = src.slice(0, src.indexOf(thisFile));
3232

33-
if (!window.Loader) {
33+
if (!window.PolymerLoader) {
3434
var path = basePath + 'tools/loader/loader.js';
3535
document.write('<script src="' + path + '"></script>');
3636
}
3737

38-
document.write('<script>Loader.load("' + scopeName + '")</script>');
38+
document.write('<script>PolymerLoader.load("' + scopeName + '")</script>');
3939

4040
})();

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)