mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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);
|
||||
// No need for _changed() since the only thing this affects is _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',
|
||||
'getRoughBounds', 'getInternalBounds', 'getInternalRoughBounds'],
|
||||
function(key) {
|
||||
|
|
Loading…
Reference in a new issue