widget efficiency

tomv
Tera Contributor

hi everyone, i have a widget where i created an array of hardcoded strings, i use this array to pass data to the DOM and to another array after changing the data of the original array a bit.

now i want to split the widget into two separate widgets.

my question is: what's is more correct- hardcoding the second array and creating two arrays of almost identical data within the two separate widgets or sending the original array from one widget to the other and passing the data to the second array as i did in the original widget?

Thx a lot!

0 REPLIES 0