forked from 0x2620/oxjs
remove new for all Ox.Elements, dont declare arguments again, add some semicolons
This commit is contained in:
parent
3eab11e967
commit
b27ed00356
69 changed files with 430 additions and 440 deletions
|
|
@ -4,7 +4,6 @@
|
|||
Ox.App <f> Basic application instance that communicates with a JSON API
|
||||
() -> <f> App object
|
||||
(options) -> <f> App object
|
||||
(options, self) -> <f> App object
|
||||
options <o> Options object
|
||||
timeout <n> request timeout
|
||||
type <s> HTTP Request type, i.e. 'GET' or 'POST'
|
||||
|
|
@ -14,9 +13,7 @@ Ox.App <f> Basic application instance that communicates with a JSON API
|
|||
|
||||
@*/
|
||||
|
||||
Ox.App = (function() {
|
||||
|
||||
return function(options) {
|
||||
Ox.App = function(options) {
|
||||
|
||||
options = options || {};
|
||||
var self = {
|
||||
|
|
@ -27,7 +24,7 @@ Ox.App = (function() {
|
|||
}, options || {}),
|
||||
time: new Date()
|
||||
},
|
||||
that = new Ox.Element({}, self);
|
||||
that = Ox.Element({}, self);
|
||||
|
||||
that.api = {
|
||||
api: function(callback) {
|
||||
|
|
@ -128,6 +125,4 @@ Ox.App = (function() {
|
|||
|
||||
return that;
|
||||
|
||||
};
|
||||
|
||||
}());
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue