1
0
Fork 0
forked from 0x2620/oxjs

document events

This commit is contained in:
j 2012-06-18 00:38:26 +02:00
commit d2e05200da
56 changed files with 277 additions and 32 deletions

View file

@ -3,12 +3,12 @@
/*@
Ox.App <f> Basic application instance that communicates with a JSON API
([options]) -> <o> App object
load <!> app loaded
options <o> Options object
timeout <n> request timeout
type <s> HTTP Request type, i.e. 'GET' or 'POST'
url <s> JSON API url
self <o> Shared private variable
load <!> app loaded
@*/
Ox.App = function(options) {
@ -24,6 +24,7 @@ Ox.App = function(options) {
},
that = Ox.Element({}, Ox.extend({}, self));
//@ api <o> api endpoint
that.api = Ox.API({
type: self.options.type,
timeout: self.options.timeout,
@ -37,6 +38,7 @@ Ox.App = function(options) {
});
});
//@ localStorage <f> Ox.localStorage instance
that.localStorage = Ox.localStorage(self.options.name);
function getUserData() {