I have troubles making my collection to work:
/models/news.js
exports.definition = { config: { adapter: { type: "properties", collection_name: "news" } }, extendModel: function(Model) { _.extend(Model.prototype, { // extended functions and properties go here }); return Model; }, extendCollection: function(Collection) { _.extend(Collection.prototype, { // extended functions and properties go here }); return Collection; } };/views/news.xml
<!-- tried this --> <Alloy> <Window id="news" class="main-container"> <Collection src="news" id="newsCollection" /> <TableView dataCollection="newsCollection" platform="mobileweb"> </TableView> </Window> </Alloy> <!-- and this --> <Alloy> <Window id="news" class="main-container"> <Collection src="news" id="newsCollection" instance="true" /> <TableView dataCollection="newsCollection" platform="mobileweb"> </TableView> </Window> </Alloy>/alloy.js
Alloy.Collections.news = Alloy.createCollection("news");What more should I do to make it work and not get [ERROR] Error with <Collection> at line 3?
It happens on every platform, every virtual machine and also on mobile web platform. I'm using Alloy 3.3.0