forked from 0x2620/oxjs
remove Ox.each, , $.extend, $.map and $.merge
This commit is contained in:
parent
da9e5dbb29
commit
4cc754a28d
35 changed files with 104 additions and 131 deletions
|
|
@ -95,7 +95,7 @@ Ox.App = function(options) {
|
|||
},
|
||||
navigator: {
|
||||
cookieEnabled: navigator.cookieEnabled,
|
||||
plugins: $.map(navigator.plugins, function(plugin, i) {
|
||||
plugins: Ox.makeArray(navigator.plugins).map(function(plugin) {
|
||||
return plugin.name;
|
||||
}),
|
||||
userAgent: navigator.userAgent
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ Ox.Request = function(options) {
|
|||
pending = {},
|
||||
requests = {},
|
||||
self = {
|
||||
options: $.extend({
|
||||
options: Ox.extend({
|
||||
timeout: 60000,
|
||||
type: 'POST',
|
||||
url: '/api/'
|
||||
|
|
@ -87,7 +87,7 @@ Ox.Request = function(options) {
|
|||
@*/
|
||||
send: function(options) {
|
||||
|
||||
var options = $.extend({
|
||||
var options = Ox.extend({
|
||||
age: -1,
|
||||
callback: null,
|
||||
id: Ox.uid(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue