minor changes

This commit is contained in:
rolux 2011-04-23 20:02:41 +02:00
parent 6c0d7cd3ca
commit 95fc4e29bb
2 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@ console.log('calling Ox.UI()')
//console.log('Ox =', Ox)
//console.log('Ox.UI =', Ox.UI)
Ox.UI({display: 'icon', theme: 'modern'}, function() {
Ox.UI({display: 'console', theme: 'modern'}, function() {
console.log('running Ox.UI()')
//console.log('Ox =', Ox)

View file

@ -12,9 +12,9 @@ Ox.App = (function() {
/***
Ox.App
Basic application instance that communicates with a JSON API.
The JSON API should support at least the following actions:
The JSON API must support at least the following actions:
api returns all api methods
init returns {config: {...}, user: {...}}
init returns data (site, user, ...)
Options
timeout API timeout in msec
type 'GET' or 'POST'
@ -38,7 +38,7 @@ Ox.App = (function() {
}, options || {}),
time: new Date()
},
that = Ox.Element();
that = new Ox.Element({}, self);
that.api = {
api: function(callback) {