var onReady = require('kwf/on-ready');

onReady.onContentReady(function() {
    Ext2.query('.testItemWrapper').forEach(function(list) {
        if (!list.kwfList) {
            list.kwfList = new Kwf.EyeCandy.List({
                el: list,
                childSelector: '.testItem',
                plugins: [
                    new Kwf.EyeCandy.List.Plugins.Carousel({
                        getItemWidth: function() {
                            return 100;
                        }
                    })
                ]
            });
        }
    });
});
