Skip to content

Commit

Permalink
fixed bug when text object are not being loaded with loadFromDataless…
Browse files Browse the repository at this point in the history
…JSON method
  • Loading branch information
sunrei committed Mar 23, 2012
1 parent c7006df commit f780bab
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/canvas.serialization.js
Expand Up @@ -66,7 +66,6 @@ fabric.util.object.extend(fabric.StaticCanvas.prototype, {
if (typeof path !== 'string') {
switch (obj.type) {
case 'image':
case 'text':
fabric[fabric.util.string.capitalize(obj.type)].fromObject(obj, function (o) {
onObjectLoaded(o, index);
});
Expand Down

0 comments on commit f780bab

Please sign in to comment.