mirror of
https://github.com/konvajs/konva.git
synced 2025-09-19 19:07:59 +08:00
got started on jshint errors. still a lot to do
This commit is contained in:
@@ -177,7 +177,7 @@
|
|||||||
layersLen = layers.length;
|
layersLen = layers.length;
|
||||||
|
|
||||||
for (i=0; i<layersLen; i++) {
|
for (i=0; i<layersLen; i++) {
|
||||||
layer = layers[i]
|
layer = layers[i];
|
||||||
if(layer._id !== undefined) {
|
if(layer._id !== undefined) {
|
||||||
layerHash[layer._id] = layer;
|
layerHash[layer._id] = layer;
|
||||||
}
|
}
|
||||||
|
@@ -24,8 +24,9 @@
|
|||||||
|
|
||||||
Kinetic.Canvas.prototype = {
|
Kinetic.Canvas.prototype = {
|
||||||
init: function(config) {
|
init: function(config) {
|
||||||
var config = config || {},
|
config = config || {};
|
||||||
width = config.width || 0,
|
|
||||||
|
var width = config.width || 0,
|
||||||
height = config.height || 0,
|
height = config.height || 0,
|
||||||
pixelRatio = config.pixelRatio || _pixelRatio,
|
pixelRatio = config.pixelRatio || _pixelRatio,
|
||||||
contextType = config.contextType || '2d';
|
contextType = config.contextType || '2d';
|
||||||
|
@@ -64,8 +64,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
_endDragAfter: function(evt) {
|
_endDragAfter: function(evt) {
|
||||||
var evt = evt || {},
|
evt = evt || {};
|
||||||
dragEndNode = evt.dragEndNode;
|
|
||||||
|
var dragEndNode = evt.dragEndNode;
|
||||||
|
|
||||||
if (evt && dragEndNode) {
|
if (evt && dragEndNode) {
|
||||||
dragEndNode.fire('dragend', evt, true);
|
dragEndNode.fire('dragend', evt, true);
|
||||||
|
Reference in New Issue
Block a user