Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #2238 from inssein/image_init_config
Browse files Browse the repository at this point in the history
image.class.js not properly calling _initConfig when initializing
  • Loading branch information
kangax committed May 27, 2015
2 parents 697d17b + 502259a commit f0fcd77
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/shapes/image.class.js
Expand Up @@ -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);
},

Expand Down

0 comments on commit f0fcd77

Please sign in to comment.