Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Array.apply([],arguments) --> Array.call([], arguments)[0]

  • Loading branch information...
commit a451ce52af9d4af20c3089662cebe340c9796364 1 parent 0a82dbd
@RubyLouvre authored
Showing with 7 additions and 7 deletions.
  1. +4 −4 interact.js
  2. +1 −1  mass.js
  3. +1 −1  mass_neo.js
  4. +1 −1  more/store.js
View
8 interact.js
@@ -99,7 +99,7 @@ define("interact", ["class"], function($) {
require("interact",function($){
var flow = new $.Flow;
flow.refresh("aaa,bbb,ccc",function(){
- $.log(Array.apply([],arguments))
+ $.log(Array.call([],arguments))
});
flow.fire("aaa",1)//没反应
flow.fire("bbb",2)//没反应
@@ -118,7 +118,7 @@ define("interact", ["class"], function($) {
require("interact",function($){
var flow = new $.Flow;
flow.reload("aaa,bbb,ccc",function(){
- $.log(Array.apply([],arguments))
+ $.log(Array.call([],arguments))
});
flow.fire("aaa",1)//没反应
flow.fire("bbb",2)//没反应
@@ -137,7 +137,7 @@ define("interact", ["class"], function($) {
require("interact",function($){
var flow = new $.Flow;
flow.refresh("aaa,bbb,ccc", function(){
- $.log(Array.apply([],arguments))
+ $.log(Array.call([],arguments))
});
flow.order("aaa",1);//没有反应
flow.order("aaa",2);//出错,它本应该触发bbb,但没有警告,它只要求你重来
@@ -172,7 +172,7 @@ define("interact", ["class"], function($) {
require("interact",function($){
var flow = new $.Flow;
flow.repeat("aaa",4,function(){
- $.log(Array.apply([],arguments))
+ $.log(Array.call([],arguments))
});
flow.fire("aaa",1)//没反应
flow.fire("aaa",2)//没反应
View
2  mass.js
@@ -66,7 +66,7 @@
function mix(receiver, supplier) {
- var args = Array.apply([], arguments),
+ var args = Array.call([], arguments)[0],
i = 1,
key, //如果最后参数是布尔,判定是否覆写同名属性
ride = typeof args[args.length - 1] === "boolean" ? args.pop() : true;
View
2  mass_neo.js
@@ -62,7 +62,7 @@ function(global, DOC) {
var hasOwn = Object.prototype.hasOwnProperty
function mix(receiver, supplier) {
- var args = Array.apply([], arguments),
+ var args = Array.call([], arguments)[0],
i = 1,
key, //如果最后参数是布尔,判定是否覆写同名属性
ride = typeof args[args.length - 1] === "boolean" ? args.pop() : true;
View
2  more/store.js
@@ -126,7 +126,7 @@ define("store", this.JSON && JSON.parse ? ["support"] :["$support","./json2"], f
}
function withIEStorage(storeFunction) {
return function() {
- var args = Array.apply([],arguments);
+ var args = Array.call([],arguments)[0];
args.unshift(storage)
// http://msdn.microsoft.com/en-us/library/ms531081(v=VS.85).aspx
// http://msdn.microsoft.com/en-us/library/ms531424(v=VS.85).aspx
Please sign in to comment.
Something went wrong with that request. Please try again.