Ox.toArray -> Ox.slice
This commit is contained in:
parent
3a28b08d46
commit
031aa4367b
11 changed files with 20 additions and 20 deletions
|
|
@ -45,7 +45,7 @@ Ox.App = function(options) {
|
|||
location: {href: location.href},
|
||||
navigator: {
|
||||
cookieEnabled: navigator.cookieEnabled,
|
||||
plugins: Ox.toArray(navigator.plugins).map(function(plugin) {
|
||||
plugins: Ox.slice(navigator.plugins).map(function(plugin) {
|
||||
return plugin.name;
|
||||
}),
|
||||
userAgent: navigator.userAgent
|
||||
|
|
|
|||
|
|
@ -445,7 +445,7 @@ Ox.Element = function(options, self) {
|
|||
@*/
|
||||
that.toggleOption = function() {
|
||||
var options = {};
|
||||
Ox.toArray(arguments).forEach(function(key) {
|
||||
Ox.slice(arguments).forEach(function(key) {
|
||||
options[key] == !self.options[key];
|
||||
});
|
||||
that.options(options);
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ Ox.Event = (function() {
|
|||
Event names can be namespaced, like `'click.foo'`
|
||||
*/
|
||||
that.bind = function() {
|
||||
var args = Ox.toArray(arguments), once, self;
|
||||
var args = Ox.slice(arguments), once, self;
|
||||
if (args.length == 1) {
|
||||
eventHandlers.push(args[0])
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue