From 9ef542ff9a20be5a1a1cbbf1fcc5a1cc43966343 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 7 May 2011 14:57:20 +0100 Subject: [PATCH] Add comment to #_canged(). --- src/item/Item.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/item/Item.js b/src/item/Item.js index c476270a..2844e232 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -22,6 +22,12 @@ var Item = this.Item = Base.extend({ this.setStyle(this._document.getCurrentStyle()); }, + /** + * Private notifier that is called whenever a change occurs in this item or + * its sub-elements, such as Segments, Curves, PathStyles, etc. + * + * @param {ChangeFlags} flags describes what exactly has changed. + */ _changed: function(flags) { if (flags & ChangeFlags.PATH) { delete this._position;