Line 18: | Line 18: | ||
var people = new People(); | var people = new People(); | ||
people.roles = [CI,AR]; | people.roles = [CI,AR]; | ||
− | + | people.on("sync", function(){ | |
people.each(function(person){ | people.each(function(person){ | ||
person.set('url', person.get('url').replace("?embed", "")); | person.set('url', person.get('url').replace("?embed", "")); | ||
console.log(person.get('url')); | console.log(person.get('url')); | ||
}); | }); | ||
− | + | }); | |
+ | |||
+ | var view = new CarouselView({el: "#carousel", model: people}); | ||
_.defer(function(){ | _.defer(function(){ | ||
$(".carouselPrev,.carouselNext").addClass("highlights-background-hover"); | $(".carouselPrev,.carouselNext").addClass("highlights-background-hover"); | ||
}); | }); | ||
− | |||
}); | }); | ||
</script> | </script> |