fixed bug with _setSize()

This commit is contained in:
Eric Rowell
2012-05-13 11:32:26 -07:00
parent 7be0e5f577
commit 7f8a174b51
6 changed files with 13 additions and 29 deletions

View File

@@ -178,8 +178,8 @@ Kinetic.GlobalObject = {
// val is an array
if(Kinetic.GlobalObject._isArray(val)) {
obj[key].x = val[2];
obj[key].y = val[3];
obj[key].width = val[2];
obj[key].height = val[3];
}
// val is an object
else if(obj[key] !== undefined) {

View File

@@ -2,7 +2,7 @@
// Node
///////////////////////////////////////////////////////////////////////
/**
* Node constructor.  Nodes are entities that can move around
* Node constructor.  Nodes are entities that can be transformed, layered,
* and have events bound to them. They are the building blocks of a KineticJS
* application
* @constructor
@@ -45,7 +45,7 @@ Kinetic.Node.prototype = {
* such as 'mousedown mouseup mousemove'. include a namespace to bind an
* event by name such as 'click.foobar'.
* @param {String} typesStr
* @param {function} handler
* @param {Function} handler
*/
on: function(typesStr, handler) {
var types = typesStr.split(' ');

View File

@@ -340,10 +340,6 @@ Kinetic.Shape.prototype = {
return (alpha !== undefined && alpha !== 0);
}
},
/**
* draw shape
* @param {Layer} layer Layer that the shape will be drawn on
*/
_draw: function(layer) {
if(layer !== undefined && this.drawFunc !== undefined) {
var stage = layer.getStage();