Merge pull request #1168 from MayhemYDG/GM1.10

Remove $.open workaround.
This commit is contained in:
Mayhem 2013-07-11 15:30:45 -07:00
commit 61cfc9a62e

View File

@ -147,9 +147,7 @@ $.off = (el, events, handler) ->
$.event = (event, detail, root=d) ->
root.dispatchEvent new CustomEvent event, {bubbles: true, detail}
<% if (type === 'userscript') { %>
# XXX fix GM opening file://// for protocol-less URLs.
# https://github.com/greasemonkey/greasemonkey/issues/1719
$.open = (URL) -> GM_openInTab ($.el 'a', href: URL).href
$.open = (URL) -> GM_openInTab URL
<% } else { %>
$.open = (URL) -> window.open URL, '_blank'
<% } %>