clone missing ?!
jonlepage opened this issue · comments
jon lepage commented
Ivan Popelyshev commented
maybe clone() doesnt exist in observables, we have to add it there. just add it
PIXI.ObservablePoint3d.prototype.clone = PIXI.Point3d.prototype.clone;
I'm not sure about namespace and class names.
I'm taking a rest from pixi for a month and I wont answer questions
jon lepage commented
ok i wish you a good holiday you deserve it. :)
jon lepage commented
PIXI.ObservablePoint3d.prototype.clone = PIXI.Point3d.prototype.clone;
well not working , the clone give only {x,y}
So i will keep this for now.
we can look that when you get back to make a pr and check that all is well if you want.
PIXI.ObservablePoint.prototype.clone = function clone() {
var cb = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
var scope = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
var _cb = cb || this.cb;
var _scope = scope || this.scope;
var o = new PIXI.ObservablePoint(_cb, _scope, this._x, this._y);
o.z = this._z;
return o;
}