[Pkg-javascript-commits] [dojo] 08/16: patch from retchless \!strict fixes #11257

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 17:39:03 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag 1.5.3
in repository dojo.

commit aef4dae0e87042fe304c4d864478f38723e877b0
Author: Adam Peller <github at peller.org>
Date:   Sat Jan 22 01:02:00 2011 +0000

    patch from retchless \!strict fixes #11257
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.5/dojo@23596 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 hash.js | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/hash.js b/hash.js
index 149e2b6..62db7ce 100644
--- a/hash.js
+++ b/hash.js
@@ -44,8 +44,7 @@ dojo.provide("dojo.hash");
 	}
 
 	// Global vars
-	var _recentHash = null,
-		_ieUriMonitor = null,
+	var _recentHash, _ieUriMonitor, _connect,
 		_pollFrequency = dojo.config.hashPollFrequency || 100;
 
 	//Internal functions
@@ -83,7 +82,7 @@ dojo.provide("dojo.hash");
 			return;
 		}
 		location.replace("#"+hash);
-		_pollLocation();
+		!_connect && _pollLocation();
 	}
 
 	function IEUriMonitor(){
@@ -213,7 +212,7 @@ dojo.provide("dojo.hash");
 	}
 	dojo.addOnLoad(function(){
 		if("onhashchange" in dojo.global && (!dojo.isIE || (dojo.isIE >= 8 && document.compatMode != "BackCompat"))){	//need this IE browser test because "onhashchange" exists in IE8 in IE7 mode
-			dojo.connect(dojo.global,"onhashchange",_dispatchEvent);
+			_connect = dojo.connect(dojo.global,"onhashchange",_dispatchEvent);
 		}else{
 			if(document.addEventListener){ // Non-IE
 				_recentHash = _getHash();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git



More information about the Pkg-javascript-commits mailing list