Avoid rendering dot in FF on click in free drawing mode.

This commit is contained in:
kangax 2012-08-23 15:15:11 +02:00
parent dc8224138d
commit deb33940a2
6 changed files with 8 additions and 6 deletions

View file

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

3
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.9.1" };
var fabric = fabric || { version: "0.9.2" };
if (typeof exports != 'undefined') {
exports.fabric = fabric;
@ -6630,6 +6630,7 @@ fabric.util.string = {
if (path === "M 0 0 L 0 0 ") {
// do not create 0 width/height paths, as they are rendered inconsistently across browsers
// Firefox 4, for example, renders a dot, whereas Chrome 10 renders nothing
this.renderAll();
return;
}

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.9.1",
"version": "0.9.2",
"author": "Juriy Zaytsev <kangax@gmail.com>",
"keywords": ["canvas", "graphic", "graphics", "SVG", "node-canvas", "parser", "HTML5", "object model"],
"repository": "git://github.com/kangax/fabric.js",
@ -21,6 +21,6 @@
"devDependencies": {
"qunit": "0.5.x"
},
"engines": { "node": ">= 0.4.0 && <=0.8.6" },
"engines": { "node": ">=0.4.0 && <=0.8.7" },
"main": "./dist/all.js"
}

View file

@ -699,6 +699,7 @@
if (path === "M 0 0 L 0 0 ") {
// do not create 0 width/height paths, as they are rendered inconsistently across browsers
// Firefox 4, for example, renders a dot, whereas Chrome 10 renders nothing
this.renderAll();
return;
}