Skip to content

Commit

Permalink
converting bufferImage to imageBuffer in Image.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ericdrowell committed Aug 22, 2012
1 parent 7b4ec5e commit 47a0605
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions dist/kinetic-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -4559,23 +4559,23 @@ Kinetic.Image = Kinetic.Shape.extend({

var that = this;
Kinetic.Type._getImage(imageData, function(imageObj) {
that.bufferImage = imageObj;
that.imageBuffer = imageObj;
if(callback) {
callback();
}
});
}
catch(e) {
Kinetic.Global.warn('Unable to create buffer image.');
Kinetic.Global.warn('Unable to create image buffer.');
}
},
/**
* clear buffer image
* @name clearBufferImage
* @name clearImageBuffer
* @methodOf Kinetic.Image.prototype
*/
clearBufferImage: function() {
delete this.bufferImage;
clearImageBuffer: function() {
delete this.imageBuffer;
},
_syncSize: function() {
if(this.attrs.image) {
Expand Down
Loading

0 comments on commit 47a0605

Please sign in to comment.