changed createImageBuffer to createImageHitRegion for consistency

This commit is contained in:
Eric Rowell
2012-11-28 23:18:17 -08:00
parent 6ae7a932f8
commit 94670aeeda
3 changed files with 4 additions and 4 deletions

View File

@@ -132,12 +132,12 @@ Kinetic.Image.prototype = {
/**
* create image buffer which enables more accurate hit detection mapping of the image
* by avoiding event detections for transparent pixels
* @name createImageBuffer
* @name createImageHitRegion
* @methodOf Kinetic.Image.prototype
* @param {Function} [callback] callback function to be called once
* the buffer image has been created and set
*/
createImageBuffer: function(callback) {
createImageHitRegion: function(callback) {
var canvas = new Kinetic.Canvas(this.attrs.width, this.attrs.height);
var context = canvas.getContext();
context.drawImage(this.attrs.image, 0, 0);