From 502259a9465f5c9b2724138d13d2e8a23677925d Mon Sep 17 00:00:00 2001 From: inssein Date: Wed, 27 May 2015 13:47:06 -0700 Subject: [PATCH] Fix bug with image.class.js not properly calling _initConfig when initializing. --- src/shapes/image.class.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/shapes/image.class.js b/src/shapes/image.class.js index ac8ff93485e..e2ffc2f4aa1 100644 --- a/src/shapes/image.class.js +++ b/src/shapes/image.class.js @@ -451,9 +451,10 @@ * called by the constructor. * @private * @param {HTMLImageElement|String} element The element representing the image + * @param {Object} [options] Options object */ - _initElement: function(element) { - this.setElement(fabric.util.getById(element)); + _initElement: function(element, options) { + this.setElement(fabric.util.getById(element), null, options); fabric.util.addClass(this.getElement(), fabric.Image.CSS_CANVAS); },