dresscode-bricks
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -11,3 +11,5 @@ //#require Bricks.Component | ||
touchEnabled: true, | ||
_initComponent: function() { | ||
@@ -20,3 +22,7 @@ Bricks.DragController.superclass._initComponent.apply(this, arguments); | ||
this._events.on(this._el, 'mousedown,touchstart', this.$$_onMouseDown, this); | ||
var eventName = 'mousedown'; | ||
if (this.touchEnabled) { | ||
eventName += ',touchstart'; | ||
} | ||
this._events.on(this._el, eventName, this.$$_onMouseDown, this); | ||
}, | ||
@@ -23,0 +29,0 @@ |
{ | ||
"name": "dresscode-bricks", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Kolyaj", |
128560
3150