forked from 0x2620/oxjs
more docs
This commit is contained in:
parent
bdb8d98787
commit
cc75e25415
42 changed files with 664 additions and 93 deletions
|
|
@ -7,7 +7,7 @@ Ox.App <f> Basic application instance that communicates with a JSON API
|
|||
(options, self) -> <f> App object
|
||||
options <o> Options object
|
||||
timeout <n> request timeout
|
||||
type <s> 'GET' or 'POST'
|
||||
type <s> HTTP Request type, i.e. 'GET' or 'POST'
|
||||
url <s> JSON API url
|
||||
self <o> Shared private variable
|
||||
load <!> app loaded
|
||||
|
|
@ -109,10 +109,19 @@ Ox.App = (function() {
|
|||
};
|
||||
}
|
||||
|
||||
/*@
|
||||
change <f> change key/value
|
||||
(key, value) -> <u> currently not implemented
|
||||
@*/
|
||||
self.change = function(key, value) {
|
||||
|
||||
};
|
||||
|
||||
/*@
|
||||
options <f> get/set options, see Ox.getset
|
||||
() -> <o> get options
|
||||
(options) -> <o> update/set options
|
||||
@*/
|
||||
that.options = function() {
|
||||
return Ox.getset(self.options, Array.prototype.slice.call(arguments), self.change, that);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue