mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Keep support for Item#registration for now as well, since there are some scripts on the mailing list that use it.
This commit is contained in:
parent
78a2685324
commit
42788a5bf7
1 changed files with 6 additions and 1 deletions
|
@ -803,7 +803,12 @@ var Item = Base.extend(Callback, /** @lends Item# */{
|
||||||
this._anchor = Point.read(arguments);
|
this._anchor = Point.read(arguments);
|
||||||
// No need for _changed() since the only thing this affects is _position
|
// No need for _changed() since the only thing this affects is _position
|
||||||
delete this._position;
|
delete this._position;
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// TODO: Keep these around for a bit since it was introduced on the mailing
|
||||||
|
// list, then remove in a while.
|
||||||
|
getRegistration: '#getAnchor',
|
||||||
|
setRegistration: '#setAnchor'
|
||||||
}, Base.each(['getBounds', 'getStrokeBounds', 'getHandleBounds',
|
}, Base.each(['getBounds', 'getStrokeBounds', 'getHandleBounds',
|
||||||
'getRoughBounds', 'getInternalBounds', 'getInternalRoughBounds'],
|
'getRoughBounds', 'getInternalBounds', 'getInternalRoughBounds'],
|
||||||
function(key) {
|
function(key) {
|
||||||
|
|
Loading…
Reference in a new issue