Access the Array object on indexSplices for splice observations

47 views
Skip to first unread message

rdcr...@google.com

unread,
Dec 4, 2015, 4:47:58 PM12/4/15
to Polymer
Howdy,

I have a basic "computeIsListVisible()" function that observes array changes using array.splices, and should return true if the list is non-empty.  When the array is changed, it's passed in an object with indexSplices and keySplices, but doesn't include a (documented) reference to the array that changed.  It seems like wanting to know which array changed is a reasonably common use case - could this be included and documented, so that the modified array doesn't have to be curried in somehow?

Side note: the array object that changed is actually included as an "object" property on the indexSplice record, but since it's undocumented, I'm assuming it can disappear at any moment. :)

Cheers,
- Devlin

Eric Bidelman

unread,
Dec 4, 2015, 4:56:29 PM12/4/15
to rdcr...@google.com, Polymer
Please file a docs bug. Thanks!


Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/37416a8c-2016-4e1e-a3eb-fcdecafbc240%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages