-
Notifications
You must be signed in to change notification settings - Fork 12
Description
I'm looking to identify which items are linked to the same source (more specifically, when iterating over all items, only process one item for each linked source and skipping subsequent ways). An obvious way to do so would be to get the id of the source linked to an item and see if that id is the same.
It think I can do this using Item._srcId, but that's of course an internal property. There does not seem to be an Item.getSourceId() or so, would that be worth adding?
I could of course do getSource().getId(), but that involves several async requests (since getSource() requests config rather than using this._xmlparams which I suspect is the same, and getId() for a source requests prop:srcid rather than returning just this._srcId, for reasons I don't follow) and constructs a new object, which should not really be needed.