kangax/fabric.js — Issue #84: fabric.Object._render() error 
Author: Kienz
Created: 2011-11-23 12:53:22+00:00
State: open

In Firefox 4 (also 3.6.24) i got an error if i want to load objects (type="path-group") with ```fabric.Canvas.loadFromJSON()``` - ```An invalid or illegal string was specified" code: "12```
The values this.x and this.y are ```'undefined'```. In newer browser it seems that ctx.translate() don't raise this error.

```if (this.group) {
ctx.translate(this.x, this.y);
}```

This fixes the problem:
```if (this.group) {
ctx.translate(this.x || 0, this.y || 0);
}```