Project: titanium
Issue TIMOB-20222: Windows: Error while createcollection on Windows Phone
I create a simple alloy app project but in my alloy.js if i put this line {code:javascript} Alloy.Collections.category = Alloy.createCollection('category'); {code} when the app starts I see in the console this error {code} [ERROR] : Application Error: { [ERROR] : "line": 2, [ERROR] : "column": 10, [ERROR] : "message": "Error while require(/app) Error while require(alloy/models/Category) unknown exception", [ERROR] : "native_stack": [ [ERROR] : "JSExportClass::CallNamedFunction" [ERROR] : ] [ERROR] : } {code} everything works if a run the app on Android and iOS, but it crash if i run it in Windows Phone Simulator. This is my model category.js {code:javascript} exports.definition = {	config: {	columns: { "id": "INTEGER PRIMARY KEY AUTOINCREMENT", "name": "TEXT", "counter": "INTEGER", "default_image": "TEXT" }, defaults: { "name": "TEXT", "counter": "INTEGER", "default_image": "TEXT" },	adapter: {	"type": "sql",	"tablename": "category",	"collection_name": "category",	"db_file": "/db.sqlite",	"db_name": "category",	"idAttribute": "id",	"remoteBackup": false	}	},	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; } }; {code}
Story points: 8