From ae18e1da55a7261e3c942170cae7bd58dd62c2d7 Mon Sep 17 00:00:00 2001 From: sapzxc Date: Wed, 19 Feb 2014 00:40:12 +0200 Subject: [PATCH 01/10] Update jquery.ba-hashchange.js --- jquery.ba-hashchange.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jquery.ba-hashchange.js b/jquery.ba-hashchange.js index 47105f4..cb16602 100644 --- a/jquery.ba-hashchange.js +++ b/jquery.ba-hashchange.js @@ -297,7 +297,8 @@ // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv // vvvvvvvvvvvvvvvvvvv REMOVE IF NOT SUPPORTING IE6/7/8 vvvvvvvvvvvvvvvvvvv // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv - $.browser.msie && !supports_onhashchange && (function(){ + /msie/.test(navigator.userAgent.toLowerCase()) && + !supports_onhashchange && (function(){ // Not only do IE6/7 need the "magical" Iframe treatment, but so does IE8 // when running in "IE7 compatibility" mode. From f3226305c2f2e1a1303c670e17c0e08b8b31abf1 Mon Sep 17 00:00:00 2001 From: sapzxc Date: Thu, 29 May 2014 16:29:49 +0300 Subject: [PATCH 02/10] Create bower.json --- bower.json | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 bower.json diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..767eabc --- /dev/null +++ b/bower.json @@ -0,0 +1,10 @@ +{ + "name": "jquery-hashchange", + "version": "1.4", + "ignore": [ + "unit", + "shared", + "examples", + "docs" + ] +} From 64260df78de357fa3038549eced239ed89db06fd Mon Sep 17 00:00:00 2001 From: Sapzxc Date: Thu, 29 May 2014 13:48:20 +0000 Subject: [PATCH 03/10] * $.browser.msie fix --- jquery.ba-hashchange.js | 9 +++++---- jquery.ba-hashchange.min.js | 8 ++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/jquery.ba-hashchange.js b/jquery.ba-hashchange.js index cb16602..a852070 100644 --- a/jquery.ba-hashchange.js +++ b/jquery.ba-hashchange.js @@ -1,15 +1,15 @@ /*! - * jQuery hashchange event - v1.3 - 7/21/2010 + * jQuery hashchange event - v1.4 - 5/29/2014 * http://benalman.com/projects/jquery-hashchange-plugin/ * * Copyright (c) 2010 "Cowboy" Ben Alman * Dual licensed under the MIT and GPL licenses. - * http://benalman.com/about/license/ + * @license http://benalman.com/about/license/ */ // Script: jQuery hashchange event // -// *Version: 1.3, Last updated: 7/21/2010* +// *Version: 1.4, Last updated: 5/29/2014* // // Project Home - http://benalman.com/projects/jquery-hashchange-plugin/ // GitHub - http://github.com/cowboy/jquery-hashchange/ @@ -36,7 +36,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.2.6, 1.3.2, 1.4.1, 1.4.2 +// jQuery Versions - 1.2.6, 1.3.2, 1.4.1, 1.4.2, 1.11.1 // Browsers Tested - Internet Explorer 6-8, Firefox 2-4, Chrome 5-6, Safari 3.2-5, // Opera 9.6-10.60, iPhone 3.1, Android 1.6-2.2, BlackBerry 4.6-5. // Unit Tests - http://benalman.com/code/projects/jquery-hashchange/unit/ @@ -58,6 +58,7 @@ // event, but not report that it does, the fallback polling loop will be used. // // About: Release History +// 1.4 - (5/29/2014) Changed $.browser.msie to regular expression. // // 1.3 - (7/21/2010) Reorganized IE6/7 Iframe code to make it more // "removable" for mobile-only development. Added IE6/7 document.title diff --git a/jquery.ba-hashchange.min.js b/jquery.ba-hashchange.min.js index 3c607ba..c645d49 100644 --- a/jquery.ba-hashchange.min.js +++ b/jquery.ba-hashchange.min.js @@ -1,9 +1,9 @@ -/* - * jQuery hashchange event - v1.3 - 7/21/2010 +/*! + * jQuery hashchange event - v1.4 - 5/29/2014 * http://benalman.com/projects/jquery-hashchange-plugin/ * * Copyright (c) 2010 "Cowboy" Ben Alman * Dual licensed under the MIT and GPL licenses. - * http://benalman.com/about/license/ + * @license http://benalman.com/about/license/ */ -(function($,e,b){var c="hashchange",h=document,f,g=$.event.special,i=h.documentMode,d="on"+c in e&&(i===b||i>7);function a(j){j=j||location.href;return"#"+j.replace(/^[^#]*#?(.*)$/,"$1")}$.fn[c]=function(j){return j?this.bind(c,j):this.trigger(c)};$.fn[c].delay=50;g[c]=$.extend(g[c],{setup:function(){if(d){return false}$(f.start)},teardown:function(){if(d){return false}$(f.stop)}});f=(function(){var j={},p,m=a(),k=function(q){return q},l=k,o=k;j.start=function(){p||n()};j.stop=function(){p&&clearTimeout(p);p=b};function n(){var r=a(),q=o(m);if(r!==m){l(m=r,q);$(e).trigger(c)}else{if(q!==m){location.href=location.href.replace(/#.*/,"")+q}}p=setTimeout(n,$.fn[c].delay)}$.browser.msie&&!d&&(function(){var q,r;j.start=function(){if(!q){r=$.fn[c].src;r=r&&r+a();q=$('