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:
Jürg Lehni 2013-12-11 15:08:56 +01:00
parent 78a2685324
commit 42788a5bf7

View file

@ -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) {