Skip to content

Commit e9a77fe

Browse files
committed
Merge cowboy#23 - Removed $.browser
Pull-request: cowboy#23
2 parents 97e9965 + 2da0c56 commit e9a77fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jquery.ba-hashchange.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@
297297
// vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
298298
// vvvvvvvvvvvvvvvvvvv REMOVE IF NOT SUPPORTING IE6/7/8 vvvvvvvvvvvvvvvvvvv
299299
// vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
300-
(navigator.appName == 'Microsoft Internet Explorer') && !supports_onhashchange && (function(){
300+
(navigator.appName == 'Microsoft Internet Explorer') && window.attachEvent && !window.addEventListener && !supports_onhashchange && (function(){
301301
// Not only do IE6/7 need the "magical" Iframe treatment, but so does IE8
302302
// when running in "IE7 compatibility" mode.
303303

@@ -370,7 +370,7 @@
370370
iframe_doc.open();
371371

372372
// Set document.domain for the Iframe document as well, if necessary.
373-
domain && iframe_doc.write( '<script>document.domain="' + domain + '"</script>' );
373+
domain && iframe_doc.write( '\x3cscript>document.domain="' + domain + '"\x3c/script>' );
374374

375375
iframe_doc.close();
376376

0 commit comments

Comments
 (0)