We can use an inline function to build items. See how.

Share This Post

Code in this post can be obsolete, however, principles and theory may still apply.
,items:(function(){
    var items = [];

    // populate items array

    return items;
}).createDelegate(this)()
Follow me:
Latest posts by saki (see all)

Want to collaborate on an upcoming project?