App.js
enyo.dispatcher.listen(document, "deviceready");
new App().renderInto(document.body);
enyo.kind({
name: "App",
kind: "FittableRows",
components [
{kind: "Signals", ondeviceready: "deviceReady" }
],
deviceReady: function() {
//Appears twice in the logs
//Using other calls like navigator.notification results in two as well
enyo.log("device ready");
}
});
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
@inta, you are right, at least with top-of-tree Enyo and Cordova 2.6, you only need the enyo.Signals declaration
@pmarsh, I should have assumed you had that call to enyo.dispatcher, oops!
I yanked out the dispatcher call thinking perhaps it wasn't needed, but I could have sworn I still got the double calls.
However I had a lot open so I could have messed it up. I'll re-do it in the morning and post an update.
Unfortunately it doesn't seem you can't do pull requests on the github wiki or I'd update the docs