fixed a couple of spots missed on the args2array(..) refactoring session...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2018-11-14 14:46:50 +03:00
parent 39ab5a6ee9
commit 16b5e1d2a2
2 changed files with 2 additions and 2 deletions

View File

@ -3944,7 +3944,7 @@ var BrowserPrototype = {
// get the options method and call it if it exists... // get the options method and call it if it exists...
var m = this.options.open var m = this.options.open
var args = args2array(arguments) var args = [...arguments]
args[0] = path args[0] = path
var res = m ? m.apply(this, args) : this var res = m ? m.apply(this, args) : this
res = res || this res = res || this

View File

@ -65,7 +65,7 @@ function(name, defaults){
var triggerEventWithSource = var triggerEventWithSource =
module.triggerEventWithSource = module.triggerEventWithSource =
function(){ function(){
var args = args2array(arguments) var args = [...arguments]
var evt = args.shift() var evt = args.shift()
if(typeof(evt) == typeof('str')){ if(typeof(evt) == typeof('str')){