[Pkg-javascript-commits] [dojo] 06/12: Refs #10809
David Prévot
taffit at moszumanska.debian.org
Thu Aug 21 17:39:00 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag 1.4.5
in repository dojo.
commit 5822e4a3d440514e0caf6a43f49cb1abbec83f4f
Author: James Burke <jrburke at gmail.com>
Date: Thu Mar 4 05:00:51 2010 +0000
Refs #10809
git-svn-id: http://svn.dojotoolkit.org/src/branches/1.4/dojo@21462 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 8f28f51..2c5acce 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