mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-17 18:11:08 +00:00
Fix bug with extend not being defined.
This commit is contained in:
parent
e3dd685f1b
commit
7c03c115ac
2 changed files with 3 additions and 3 deletions
4
dist/all.js
vendored
4
dist/all.js
vendored
|
|
@ -1,6 +1,6 @@
|
|||
/*! Fabric.js Copyright 2008-2011, Bitsonnet (Juriy Zaytsev, Maxim Chernyak) */
|
||||
|
||||
var fabric = fabric || { version: "0.4.3" };
|
||||
var fabric = fabric || { version: "0.4.4" };
|
||||
|
||||
(function(){
|
||||
var view = document.defaultView;
|
||||
|
|
@ -6127,7 +6127,7 @@ fabric.util.object.extend(fabric.Canvas.prototype, {
|
|||
object.setSourcePath(path);
|
||||
|
||||
if (!(object instanceof fabric.PathGroup)) {
|
||||
extend(object, obj);
|
||||
fabric.util.object.extend(object, obj);
|
||||
if (typeof obj.angle !== 'undefined') {
|
||||
object.setAngle(obj.angle);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ fabric.util.object.extend(fabric.Canvas.prototype, {
|
|||
// copy parameters from serialied json to object (left, top, scaleX, scaleY, etc.)
|
||||
// skip this step if an object is a PathGroup, since we already passed it options object before
|
||||
if (!(object instanceof fabric.PathGroup)) {
|
||||
extend(object, obj);
|
||||
fabric.util.object.extend(object, obj);
|
||||
if (typeof obj.angle !== 'undefined') {
|
||||
object.setAngle(obj.angle);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue