User renderOnAddition in canvas#insertAt. Closes #233.

This commit is contained in:
kangax 2012-08-14 15:39:21 +02:00
parent 1f69989bc9
commit dc6d262b01
6 changed files with 11 additions and 7 deletions

View file

@ -1,6 +1,6 @@
/*! Fabric.js Copyright 2008-2012, Printio (Juriy Zaytsev, Maxim Chernyak) */
var fabric = fabric || { version: "0.8.49" };
var fabric = fabric || { version: "0.8.50" };
if (typeof exports != 'undefined') {
exports.fabric = fabric;

6
dist/all.js vendored
View file

@ -1,7 +1,7 @@
/* build: `node build.js modules=ALL` */
/*! Fabric.js Copyright 2008-2012, Printio (Juriy Zaytsev, Maxim Chernyak) */
var fabric = fabric || { version: "0.8.49" };
var fabric = fabric || { version: "0.8.50" };
if (typeof exports != 'undefined') {
exports.fabric = fabric;
@ -5243,9 +5243,11 @@ fabric.util.string = {
}
this.stateful && object.setupState();
object.setCoords();
this.renderAll();
this.fire('object:added', { target: object });
object.fire('added');
this.renderOnAddition && this.renderAll();
return this;
},

4
dist/all.min.js vendored

File diff suppressed because one or more lines are too long

BIN
dist/all.min.js.gz vendored

Binary file not shown.

View file

@ -1,7 +1,7 @@
{
"name": "fabric",
"description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.",
"version": "0.8.49",
"version": "0.8.50",
"author": "Juriy Zaytsev <kangax@gmail.com>",
"keywords": ["canvas", "graphic", "graphics", "SVG", "node-canvas", "parser", "HTML5", "object model"],
"repository": "git://github.com/kangax/fabric.js",

View file

@ -386,9 +386,11 @@
}
this.stateful && object.setupState();
object.setCoords();
this.renderAll();
this.fire('object:added', { target: object });
object.fire('added');
this.renderOnAddition && this.renderAll();
return this;
},