Build distribution

This commit is contained in:
kangax 2013-05-09 00:16:10 -04:00
parent 9843d6642b
commit 6c3bfa5c92
3 changed files with 9 additions and 8 deletions

15
dist/all.js vendored
View file

@ -14921,11 +14921,7 @@ fabric.util.object.extend(fabric.Object.prototype, /** @lends fabric.Object.prot
});
/** @ignore */
replacement.onload = function() {
_this._element = replacement;
callback && callback();
replacement.onload = canvasEl = imgEl = null;
};
replacement.width = imgEl.width;
replacement.height = imgEl.height;
@ -14933,12 +14929,17 @@ fabric.util.object.extend(fabric.Object.prototype, /** @lends fabric.Object.prot
// cut off data:image/png;base64, part in the beginning
var base64str = canvasEl.toDataURL('image/png').substring(22);
replacement.src = new Buffer(base64str, 'base64');
// onload doesn't fire in some node versions, so we invoke callback manually
_this._element = replacement;
// onload doesn't fire in node, so we invoke callback manually
callback && callback();
}
else {
replacement.onload = function() {
_this._element = replacement;
callback && callback();
replacement.onload = canvasEl = imgEl = null;
};
replacement.src = canvasEl.toDataURL('image/png');
}

2
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.