var app = { | |
// Application Constructor | |
initialize: function() { | |
document.addEventListener('deviceready', this.onDeviceReady.bind(this), false); | |
}, | |
onDeviceReady: function() { | |
this.receivedEvent('deviceready'); | |
var uid = window.localStorage.getItem("uid"); | |
}, | |
// Update DOM on a Received Event | |
receivedEvent: function(id) { | |
} | |
}; | |
app.initialize(); |