fabric.js/test/unit
Jeff Parsons a0a4d77272 Track IText instances per-canvas, not globally.
Previously instances of the IText shape were added to a globally-shared
array when they were created. There are two problems with this approach:

1) Interactions with one canvas affect others. I would never expect
   text in one canvas to exit edit mode just because I interacted with
   some otherwise-unrelated canvas.

2) Every IText instance leaks. There is no mechanism to clean up references
   to IText instances in the global array, so every such instance will
   hang around in memory forever, regardless of whether it is removed from
   the canvas or if the canvas itself is removed.

Discovered while profiling memory usage in Chrome.
2015-03-24 14:14:43 +11:00
..
canvas.js Divided FillRule from globalCompositeOperation 2014-09-23 08:53:56 +02:00
canvas_static.js Update image.class.js 2014-10-11 21:56:38 +02:00
circle.js Divided FillRule from globalCompositeOperation 2014-09-23 08:53:56 +02:00
color.js Add support for transparent value in fabric.Color 2014-05-09 22:55:33 +02:00
ellipse.js Update ellipse.class.js 2014-09-29 00:05:04 +02:00
gradient.js Update gradient.js 2014-08-16 08:16:12 +02:00
group.js Fix line accuray issue, remove some duplicate code, do not force width = 1 on 0. Fix object render method to render 0-dimensions lines 2014-11-20 22:34:47 +01:00
image.js Update image.class.js 2014-10-11 21:56:38 +02:00
image_filters.js Initialize "Noise" and "Brightness" filter with 0 instead of 100. 2014-05-12 16:44:12 +02:00
itext.js Track IText instances per-canvas, not globally. 2015-03-24 14:14:43 +11:00
line.js Fix line accuray issue, remove some duplicate code, do not force width = 1 on 0. Fix object render method to render 0-dimensions lines 2014-11-20 22:34:47 +01:00
object.js Fix line accuray issue, remove some duplicate code, do not force width = 1 on 0. Fix object render method to render 0-dimensions lines 2014-11-20 22:34:47 +01:00
object_interactivity.js Added object controls visibility (github issue #552). 2013-11-03 23:08:05 +00:00
observable.js stopObserving w/o arguments removes all event - handler pairs. Closes issue #936 2013-10-29 22:47:29 +04:00
parser.js Update text.js 2014-10-28 17:12:10 +01:00
path.js Fix single path toSVG export. 2015-01-20 01:49:16 +01:00
path_group.js Fix path group toSvg method. 2015-03-01 23:27:17 +01:00
pattern.js Fix pattern toSVG 2013-07-22 22:00:03 +02:00
polygon.js Fixes svg rendering rules 2015-02-03 14:24:11 +01:00
polyline.js Fixes svg rendering rules 2015-02-03 14:24:11 +01:00
rect.js Fixes svg rendering rules 2015-02-03 14:24:11 +01:00
shadow.js Update shadow.js 2015-01-18 17:29:37 +01:00
text.js Update to text, rendering and optimization 2015-01-26 02:49:37 +01:00
util.js Update util.js 2014-07-18 19:54:50 +02:00