forked from 0x2620/oxjs
document events
This commit is contained in:
parent
10281e3c8f
commit
d2e05200da
56 changed files with 277 additions and 32 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue