forked from 0x2620/oxjs
make Ox a function, allow for Ox(obj).fn() instead of Ox.fn(obj)
This commit is contained in:
parent
6784b07d24
commit
0e9432076d
2 changed files with 61 additions and 45 deletions
|
|
@ -561,7 +561,6 @@ requires
|
|||
event[k] && keys.push(v);
|
||||
});
|
||||
// avoid pushing modifier twice
|
||||
//Ox.print('keys', keys)
|
||||
if (keyNames[event.keyCode] && keys.indexOf(keyNames[event.keyCode]) == -1) {
|
||||
keys.push(keyNames[event.keyCode]);
|
||||
}
|
||||
|
|
@ -606,6 +605,7 @@ requires
|
|||
***/
|
||||
|
||||
var cache = {},
|
||||
//dfd = $.Deferred(),
|
||||
pending = {},
|
||||
requests = {},
|
||||
self = {
|
||||
|
|
@ -644,7 +644,7 @@ requires
|
|||
},
|
||||
|
||||
requests: function() {
|
||||
return Ox.length(requests);
|
||||
return Ox.len(requests);
|
||||
},
|
||||
|
||||
send: function(options) {
|
||||
|
|
@ -691,7 +691,7 @@ requires
|
|||
|
||||
function callback(data) {
|
||||
delete requests[options.id];
|
||||
//Ox.length(requests) == 0 && $body.trigger('requestStop');
|
||||
//Ox.len(requests) == 0 && $body.trigger('requestStop');
|
||||
options.callback && options.callback(data);
|
||||
}
|
||||
|
||||
|
|
@ -801,6 +801,8 @@ requires
|
|||
callback(data);
|
||||
}
|
||||
|
||||
// return dfd.promise();
|
||||
|
||||
return options.id;
|
||||
|
||||
}
|
||||
|
|
@ -6579,7 +6581,7 @@ requires
|
|||
});
|
||||
*/
|
||||
|
||||
// fixme: without this, horizontal lists don't get their full width ... weird
|
||||
// fixme: without this, horizontal lists don't get their full width
|
||||
self.options.orientation == 'horizontal' && that.$content.css({height: '1px'});
|
||||
|
||||
$.extend(self, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue