Permalink
Browse files

Integrated jQuery hashchange event v1.1, which fixes an obscure IE8 E…

…mulateIE7 meta tag compatibility mode bug. Also updated jQuery 1.4a to 1.4.
  • Loading branch information...
1 parent 222b1b4 commit 935b660748707b185a2b9330b97bd671367284a0 @cowboy cowboy committed Jan 23, 2010
View
@@ -1,7 +1,7 @@
# jQuery BBQ: Back Button & Query Library #
[http://benalman.com/projects/jquery-bbq-plugin/](http://benalman.com/projects/jquery-bbq-plugin/)
-Version: 1.1, Last updated: 1/9/2010
+Version: 1.1.1, Last updated: 1/22/2010
jQuery BBQ enables simple, yet powerful bookmarkable #hash history via a cross-browser window.onhashchange event. In addition, jQuery BBQ provides a full jQuery.deparam() method, along with both fragment and query string parse and merge utility methods.
@@ -27,7 +27,7 @@ tested with, what browsers it has been tested in, and where the unit tests
reside (so you can test it yourself).
### jQuery Versions ###
-1.3.2, 1.4a2
+1.3.2, 1.4
### Browsers Tested ###
Internet Explorer 6-8, Firefox 2-3.7, Safari 3-4, Chrome, Opera 9.6-10.1.
@@ -38,6 +38,7 @@ Internet Explorer 6-8, Firefox 2-3.7, Safari 3-4, Chrome, Opera 9.6-10.1.
## Release History ##
+1.1.1 - (1/22/2010) Integrated <jQuery hashchange event> v1.1, which fixes an obscure IE8 EmulateIE7 meta tag compatibility mode bug.
1.1 - (1/9/2010) Broke out the jQuery BBQ event.special window.onhashchange functionality into a separate plugin for users who want just the basic event & back button support, without all the extra awesomeness that BBQ provides. This plugin will be included as part of jQuery BBQ, but also be available separately. See jQuery hashchange event plugin for more information. Also added the $.bbq.removeState method.
1.0.3 - (12/2/2009) Fixed an issue in IE 6 where location.search and location.hash would report incorrectly if the hash contained the ? character. Also $.param.querystring and $.param.fragment will no longer parse params out of a URL that doesn't contain ? or #, respectively.
1.0.2 - (10/10/2009) Fixed an issue in IE 6/7 where the hidden IFRAME caused a "This page contains both secure and nonsecure items." warning when used on an https:// page.

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -13,7 +13,7 @@
<div id=Index><div class=IPageTitle>Event Index</div><div class=INavigationBar>$#! &middot; 0-9 &middot; A &middot; B &middot; C &middot; D &middot; E &middot; F &middot; G &middot; H &middot; I &middot; J &middot; K &middot; L &middot; M &middot; N &middot; <a href="#O">O</a> &middot; P &middot; Q &middot; R &middot; S &middot; T &middot; U &middot; V &middot; W &middot; X &middot; Y &middot; Z</div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="O"></a>O</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-bbq-js.html#window.onhashchange" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')" class=ISymbol>onhashchange</a>, <span class=IParent>window</span></td></tr></table>
<!--START_ND_TOOLTIPS-->
-<div class=CToolTip id="tt1"><div class=CEvent>In 1.4a2 and newer, the event object that is passed into the callback is augmented with an additional e.fragment property that contains the current document location.hash state as a string, as well as an e.getState method.</div></div><!--END_ND_TOOLTIPS-->
+<div class=CToolTip id="tt1"><div class=CEvent>In 1.4 and newer, the event object that is passed into the callback is augmented with an additional e.fragment property that contains the current document location.hash state as a string, as well as an e.getState method.</div></div><!--END_ND_TOOLTIPS-->
</div><!--Index-->
View
@@ -13,7 +13,7 @@
<div id=Index><div class=IPageTitle>File Index</div><div class=INavigationBar>$#! &middot; 0-9 &middot; A &middot; B &middot; C &middot; D &middot; E &middot; F &middot; G &middot; H &middot; I &middot; <a href="#J">J</a> &middot; K &middot; L &middot; M &middot; N &middot; O &middot; P &middot; Q &middot; R &middot; S &middot; T &middot; U &middot; V &middot; W &middot; X &middot; Y &middot; Z</div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="J"></a>J</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-bbq-js.html#jQuery_BBQ:Back_ButtonQuery_Library" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')" class=ISymbol>jQuery BBQ:<wbr>Back Button&amp;Query Library</a></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-bbq-js.html#jQuery_hashchange_event" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')" class=ISymbol>jQuery hashchange event</a></td></tr></table>
<!--START_ND_TOOLTIPS-->
-<div class=CToolTip id="tt1"><div class=CFile><b>Version: 1.1, Last updated: 1/9/2010</b></div></div><div class=CToolTip id="tt2"><div class=CFile><b>Version: 1.0, Last updated: 1/9/2010</b></div></div><!--END_ND_TOOLTIPS-->
+<div class=CToolTip id="tt1"><div class=CFile><b>Version: 1.1.1, Last updated: 1/22/2010</b></div></div><div class=CToolTip id="tt2"><div class=CFile><b>Version: 1.1, Last updated: 1/21/2010</b></div></div><!--END_ND_TOOLTIPS-->
</div><!--Index-->
View
@@ -33,7 +33,7 @@
<!--START_ND_TOOLTIPS-->
-<div class=CToolTip id="tt10"><div class=CFile><b>Version: 1.1, Last updated: 1/9/2010</b></div></div><div class=CToolTip id="tt11"><div class=CFile><b>Version: 1.0, Last updated: 1/9/2010</b></div></div><!--END_ND_TOOLTIPS-->
+<div class=CToolTip id="tt10"><div class=CFile><b>Version: 1.1.1, Last updated: 1/22/2010</b></div></div><div class=CToolTip id="tt11"><div class=CFile><b>Version: 1.1, Last updated: 1/21/2010</b></div></div><!--END_ND_TOOLTIPS-->
<!--START_ND_TOOLTIPS-->
@@ -45,7 +45,7 @@
<!--START_ND_TOOLTIPS-->
-<div class=CToolTip id="tt14"><div class=CEvent>In 1.4a2 and newer, the event object that is passed into the callback is augmented with an additional e.fragment property that contains the current document location.hash state as a string, as well as an e.getState method.</div></div><!--END_ND_TOOLTIPS-->
+<div class=CToolTip id="tt14"><div class=CEvent>In 1.4 and newer, the event object that is passed into the callback is augmented with an additional e.fragment property that contains the current document location.hash state as a string, as well as an e.getState method.</div></div><!--END_ND_TOOLTIPS-->
<!--START_ND_TOOLTIPS-->
Binary file not shown.
View
@@ -1,4 +1,4 @@
1.4
JavaScript
-/srv/projects/jquery-bbq2/jquery.ba-bbq.js 1263074809 1 jQuery BBQ: Back Button & Query Library
-/srv/projects/jquery-bbq2/jquery.ba-bbq.min.js 1263074824 0 /srv/projects/jquery-bbq2/jquery.ba-bbq.min.js
+/srv/projects/jquery-bbq/jquery.ba-bbq.min.js 1264209077 0 /srv/projects/jquery-bbq/jquery.ba-bbq.min.js
+/srv/projects/jquery-bbq/jquery.ba-bbq.js 1264209045 1 jQuery BBQ: Back Button & Query Library
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
View
@@ -13,7 +13,7 @@
ob_end_clean();
$shell['jquery'] = 'jquery-1.3.2.js';
-//$shell['jquery'] = 'jquery-1.4a2.js';
+//$shell['jquery'] = 'jquery-1.4.js';
$shell['shBrush'] = array( 'JScript' );
View
@@ -1,5 +1,5 @@
/*!
- * jQuery BBQ: Back Button & Query Library - v1.1 - 1/9/2010
+ * jQuery BBQ: Back Button & Query Library - v1.1.1 - 1/22/2010
* http://benalman.com/projects/jquery-bbq-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
@@ -9,7 +9,7 @@
// Script: jQuery BBQ: Back Button & Query Library
//
-// *Version: 1.1, Last updated: 1/9/2010*
+// *Version: 1.1.1, Last updated: 1/22/2010*
//
// Project Home - http://benalman.com/projects/jquery-bbq-plugin/
// GitHub - http://github.com/cowboy/jquery-bbq/
@@ -38,12 +38,14 @@
// tested with, what browsers it has been tested in, and where the unit tests
// reside (so you can test it yourself).
//
-// jQuery Versions - 1.3.2, 1.4a2
+// jQuery Versions - 1.3.2, 1.4
// Browsers Tested - Internet Explorer 6-8, Firefox 2-3.7, Safari 3-4, Chrome, Opera 9.6-10.1.
// Unit Tests - http://benalman.com/code/projects/jquery-bbq/unit/
//
// About: Release History
//
+// 1.1.1 - (1/22/2010) Integrated <jQuery hashchange event> v1.1, which fixes an
+// obscure IE8 EmulateIE7 meta tag compatibility mode bug.
// 1.1 - (1/9/2010) Broke out the jQuery BBQ event.special window.onhashchange
// functionality into a separate plugin for users who want just the
// basic event & back button support, without all the extra awesomeness
@@ -746,9 +748,9 @@
// Event: window.onhashchange
//
- // Usage in 1.4a2 and newer:
+ // Usage in 1.4 and newer:
//
- // In 1.4a2 and newer, the event object that is passed into the callback is
+ // In 1.4 and newer, the event object that is passed into the callback is
// augmented with an additional e.fragment property that contains the current
// document location.hash state as a string, as well as an e.getState method.
//
@@ -768,7 +770,7 @@
//
// Usage in 1.3.2:
//
- // In 1.3.2, the event object is unable to be augmented as in 1.4a2+, so the
+ // In 1.3.2, the event object is unable to be augmented as in 1.4+, so the
// fragment state isn't bound to the event object and must instead be parsed
// using the <jQuery.param.fragment> and <jQuery.bbq.getState> methods.
//
@@ -812,7 +814,7 @@
})(jQuery,this);
/*!
- * jQuery hashchange event - v1.0 - 1/9/2010
+ * jQuery hashchange event - v1.1 - 1/21/2010
* http://benalman.com/projects/jquery-hashchange-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
@@ -822,7 +824,7 @@
// Script: jQuery hashchange event
//
-// *Version: 1.0, Last updated: 1/9/2010*
+// *Version: 1.1, Last updated: 1/21/2010*
//
// Project Home - http://benalman.com/projects/jquery-hashchange-plugin/
// GitHub - http://github.com/cowboy/jquery-hashchange/
@@ -848,7 +850,7 @@
// tested with, what browsers it has been tested in, and where the unit tests
// reside (so you can test it yourself).
//
-// jQuery Versions - 1.3.2, 1.4a2
+// jQuery Versions - 1.3.2, 1.4
// Browsers Tested - Internet Explorer 6-8, Firefox 2-3.7, Safari 3-4, Chrome, Opera 9.6-10.
// Unit Tests - http://benalman.com/code/projects/jquery-hashchange/unit/
//
@@ -865,13 +867,16 @@
//
// About: Release History
//
+// 1.1 - (1/21/2010) Incorporated document.documentMode test to fix IE8 bug
+// where browser version is incorrectly reported as 8.0, despite
+// inclusion of the X-UA-Compatible IE=EmulateIE7 meta tag.
// 1.0 - (1/9/2010) Initial Release. Broke out the jQuery BBQ event.special
// window.onhashchange functionality into a separate plugin for users
// who want just the basic event & back button support, without all the
// extra awesomeness that BBQ provides. This plugin will be included as
// part of jQuery BBQ, but also be available separately.
-(function($,window){
+(function($,window,undefined){
'$:nomunge'; // Used by YUI compressor.
// A convenient shortcut.
@@ -887,7 +892,8 @@
// IE6/7 specifically need some special love when it comes to back-button
// support, so let's do a little browser sniffing..
browser = $.browser,
- is_old_ie = browser.msie && browser.version < 8,
+ mode = document.documentMode,
+ is_old_ie = browser.msie && ( mode === undefined || mode < 8 ),
// Does the browser support window.onhashchange? Test for IE version, since
// IE8 incorrectly reports this when in "IE7" or "IE8 Compatibility View"!
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 935b660

Please sign in to comment.