diff --git a/lib/OpenLayers/BaseTypes.js b/lib/OpenLayers/BaseTypes.js index d416b8fdea..329813327d 100644 --- a/lib/OpenLayers/BaseTypes.js +++ b/lib/OpenLayers/BaseTypes.js @@ -337,12 +337,12 @@ OpenLayers.Function = { */ bind: function(func, object) { // create a reference to all arguments past the second one - var args = Array.prototype.slice.apply(arguments, [2]); + var args = Array.prototype.slice.call(arguments, 2); return function() { // Push on any additional arguments from the actual function call. // These will come after those sent to the bind call. var newArgs = args.concat( - Array.prototype.slice.apply(arguments, [0]) + Array.prototype.slice.call(arguments, 0) ); return func.apply(object, newArgs); };