[Pkg-javascript-commits] [dojo] 02/04: Refs #10809

David Prévot taffit at moszumanska.debian.org
Mon May 11 20:11:59 UTC 2015


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

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

commit 49a0f0cbeaff89dfc24185b74554d72dd32b7673
Author: James Burke <jrburke at gmail.com>
Date:   Thu Mar 4 05:09:11 2010 +0000

    Refs #10809
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.1/dojo@21465 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 resources/iframe_history.html | 37 +------------------------------------
 1 file changed, 1 insertion(+), 36 deletions(-)

diff --git a/resources/iframe_history.html b/resources/iframe_history.html
index aee368f..bd9b4a0 100644
--- a/resources/iframe_history.html
+++ b/resources/iframe_history.html
@@ -8,43 +8,8 @@
 	<script type="text/javascript">
 	// <!--
 	var noInit = false;
-	
-	function defineParams(sparams){
-		if(sparams){
-			var ss = (sparams.indexOf("&") >= 0) ? "&" : "&";
-			sparams = sparams.split(ss);
-			for(var x=0; x<sparams.length; x++){
-				var tp = sparams[x].split("=");
-				if(typeof window[tp[0]] != "undefined"){
-					window[tp[0]] = ((tp[1]=="true")||(tp[1]=="false")) ? eval(tp[1]) : tp[1];
-				}
-			}
-		}
-	}
-	
-	function init(){
-		// parse the query string if there is one to try to get params that
-		// we can act on. Also allow params to be in a fragment identifier.
-		var query = null;
-		var frag = null;
-		var url = document.location.href;
-		var hashIndex = url.indexOf("#");
 		
-		//Extract fragment identifier
-		if(hashIndex != -1){
-			frag = url.substring(hashIndex + 1, url.length);
-			url = url.substring(0, hashIndex);
-		}
-
-		//Extract querystring
-		var parts = url.split("?");
-		if(parts.length == 2){
-			query = parts[1];
-		}
-
-		defineParams(query);
-		defineParams(frag);
-
+	function init(){
 		if(noInit){ return; }
 		var hasParentDojo = false;
 		try{

-- 
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