mirror of
https://github.com/konvajs/konva.git
synced 2025-09-22 20:14:01 +08:00
remove eval
statement. fix #906
This commit is contained in:
15
kinetic.js
15
kinetic.js
@@ -4,7 +4,7 @@
|
||||
* http://www.kineticjs.com/
|
||||
* Copyright 2013, Eric Rowell
|
||||
* Licensed under the MIT or GPL Version 2 licenses.
|
||||
* Date: 2014-04-22
|
||||
* Date: 2014-04-26
|
||||
*
|
||||
* Copyright (C) 2011 - 2013 by Eric Rowell
|
||||
*
|
||||
@@ -577,7 +577,7 @@ var Kinetic = {};
|
||||
Kinetic.window = window;
|
||||
Kinetic.root = root;
|
||||
|
||||
}((1, eval)('this'), function() {
|
||||
}(this, function() {
|
||||
|
||||
// Just return a value to define the module export.
|
||||
// This example returns an object, but the module
|
||||
@@ -3639,7 +3639,7 @@ var Kinetic = {};
|
||||
}
|
||||
},
|
||||
_get: function(selector) {
|
||||
return this.nodeType === selector ? [this] : [];
|
||||
return this.className === selector || this.nodeType === selector ? [this] : [];
|
||||
},
|
||||
_off: function(type, name) {
|
||||
var evtListeners = this.eventListeners[type],
|
||||
@@ -6114,7 +6114,7 @@ var Kinetic = {};
|
||||
})();
|
||||
|
||||
function FRAF(callback) {
|
||||
Kinetic.root.setTimeout(callback, 1000 / 60);
|
||||
setTimeout(callback, 1000 / 60);
|
||||
}
|
||||
|
||||
function requestAnimFrame() {
|
||||
@@ -6384,7 +6384,7 @@ var Kinetic = {};
|
||||
layer.batchDraw();
|
||||
});
|
||||
};
|
||||
})((1,eval)('this'));;(function() {
|
||||
})(this);;(function() {
|
||||
var blacklist = {
|
||||
node: 1,
|
||||
duration: 1,
|
||||
@@ -7817,9 +7817,6 @@ var Kinetic = {};
|
||||
hasStroke: function() {
|
||||
return !!(this.stroke() || this.strokeRed() || this.strokeGreen() || this.strokeBlue());
|
||||
},
|
||||
_get: function(selector) {
|
||||
return this.className === selector || this.nodeType === selector ? [this] : [];
|
||||
},
|
||||
/**
|
||||
* determines if point is in the shape, regardless if other shapes are on top of it. Note: because
|
||||
* this method clears a temporary canvas and then redraws the shape, it performs very poorly if executed many times
|
||||
@@ -14424,8 +14421,8 @@ var Kinetic = {};
|
||||
____init: function(config) {
|
||||
var that = this;
|
||||
|
||||
this.className = LABEL;
|
||||
Kinetic.Group.call(this, config);
|
||||
this.className = LABEL;
|
||||
|
||||
this.on('add.kinetic', function(evt) {
|
||||
that._addListeners(evt.child);
|
||||
|
10
kinetic.min.js
vendored
10
kinetic.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -24,7 +24,7 @@
|
||||
})();
|
||||
|
||||
function FRAF(callback) {
|
||||
Kinetic.root.setTimeout(callback, 1000 / 60);
|
||||
setTimeout(callback, 1000 / 60);
|
||||
}
|
||||
|
||||
function requestAnimFrame() {
|
||||
@@ -294,4 +294,4 @@
|
||||
layer.batchDraw();
|
||||
});
|
||||
};
|
||||
})((1,eval)('this'));
|
||||
})(this);
|
@@ -379,7 +379,7 @@ var Kinetic = {};
|
||||
Kinetic.window = window;
|
||||
Kinetic.root = root;
|
||||
|
||||
}((1, eval)('this'), function() {
|
||||
}(this, function() {
|
||||
|
||||
// Just return a value to define the module export.
|
||||
// This example returns an object, but the module
|
||||
|
Reference in New Issue
Block a user