Sorry to resurrect an old thread. Is this documented anywhere? For array properties, the *Changed method is invoked in two different ways -- when the property itself is changed (i.e. set to a different array), the function is called with the standard arguments (newValues, oldValues, paths), but when the array is modified with methods from Array.prototype, the *Changed method is called with a single parameter (splices).
Is the behavior I'm seeing guaranteed for arrays? Will this change in 0.8? Thanks! Michael On Tuesday, March 11, 2014 at 6:58:39 PM UTC-7, Steve Orvell wrote: > > Array valued properties in polymer-elements are automatically > array-observed. The *Changed method is called when the array length changes. > > > On Mon, Mar 10, 2014 at 10:29 AM, Eric Bidelman <[email protected] > <javascript:>> wrote: > >> We added 1st class support for PathObserver: >> http://www.polymer-project.org/docs/polymer/polymer.html#observeblock >> >> Is there similar support for observing array properties? >> >> -eb >> >> 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 [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/polymer-dev/CACGqRCCEjk5H0t_VwAFKMrA_2ZtSA_Bx%3DaEX8Q9em-TuGrukwA%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/polymer-dev/CACGqRCCEjk5H0t_VwAFKMrA_2ZtSA_Bx%3DaEX8Q9em-TuGrukwA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/ff196cc7-d01a-490e-9281-38bf769ab7a1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
