Fix window.open with wrong name

When calling `window.open` the newly created window would have the name of the last option in the `features` argument as the title. I think it's supposed to be pointed to `frameName`.
This commit is contained in:
John Haley 2015-06-29 10:32:27 -07:00
parent ebfbbc0801
commit 565a500320

View file

@ -45,7 +45,7 @@ window.open = (url, frameName='', features='') ->
value value
options.x ?= options.left if options.left options.x ?= options.left if options.left
options.y ?= options.top if options.top options.y ?= options.top if options.top
options.title ?= name options.title ?= frameName
options.width ?= 800 options.width ?= 800
options.height ?= 600 options.height ?= 600