From 5fb01a7c8a0e389bcc1d259ecd613f4859f8b7ae Mon Sep 17 00:00:00 2001 From: Luis Leiva Date: Sat, 12 Apr 2014 01:02:57 +0200 Subject: [PATCH] Minor renaming --- jquery.sketchable.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/jquery.sketchable.js b/jquery.sketchable.js index 3a32303..0fcc428 100644 --- a/jquery.sketchable.js +++ b/jquery.sketchable.js @@ -44,7 +44,7 @@ var sketch = new jSketch(this, { fillStyle: options.graphics.fillStyle, strokeStyle: options.graphics.strokeStyle, - lineWidth: options.graphics.lineWidth, + lineWidth: options.graphics.lineWidth }); // Flag drawing state on a per-canvas basis. sketch.isDrawing = false; @@ -218,7 +218,7 @@ * destroy: function(elem, data){}, * mousedown: function(elem, data, evt){}, * mousemove: function(elem, data, evt){}, - * mouseup: function(elem, data, evt){}, + * mouseup: function(elem, data, evt){} * }, * graphics: { * firstPointSize: 0, @@ -244,7 +244,7 @@ // destroy: function(elem, data){}, // mousedown: function(elem, data, evt){}, // mousemove: function(elem, data, evt){}, - // mouseup: function(elem, data, evt){}, + // mouseup: function(elem, data, evt){} }, // TODO: add more jSketch config options graphics: { @@ -252,9 +252,9 @@ lineWidth: 3, strokeStyle: '#F0F', fillStyle: '#F0F' - //lineCap: - //lineJoin: - //miterLimit: + //lineCap: "round", + //lineJoin: "round", + //miterLimit: 10 } }; @@ -315,11 +315,11 @@ function touchHandler(e) { e.preventDefault(); - var elem = $(e.target); + var elem = $(e.target); var touch = e.originalEvent.changedTouches[0]; // Copy original event properties to touch event. for (var o in e) { - touch[o] = e[o]; + if (e.hasOwnProperty(o)) touch[o] = e[o]; } // Remove (emulated) mouse events on mobile devices. switch (e.type) {