System:
WebOS 1.4.5 (both emulator and device)
Steps to reproduce:
In a new scene (e.g. test-assistant.js)
function TestAssistant(args) {
this.test = new Lawnchair({name: "test", table: "testTable", adaptor: "webkit"});
}
TestAssistant.prototype = {
setup: function() {
this.testDb.all(function(r) {
Mojo.Log.info("Got items from DB: ", r.length);
this.setupItemsHandler(r);
}.bind(this));
}
}
The "this.setupItemsHandler()" is not called, so I don't know if the DB is empty, to fetch some data or just stick with the DB entries.
If I swipe back a scene and call the scene again, the handler is called and the log says e.g. "Got items from DB: 0"
If the DB has already some objects, than all runs fine from the beginning, it seems this behavior is only on a new created Lawnchair.
This issue is always reproducable.