From 903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 Mon Sep 17 00:00:00 2001 From: ctrlaltca <> Date: Thu, 12 Jul 2012 11:21:01 +0000 Subject: standardize the use of unix eol; use svn properties to enforce native eol --- .../protected/pages/flex/html-template/history.js | 96 +++++++++++----------- 1 file changed, 48 insertions(+), 48 deletions(-) (limited to 'demos/address-book/protected/pages/flex/html-template/history.js') diff --git a/demos/address-book/protected/pages/flex/html-template/history.js b/demos/address-book/protected/pages/flex/html-template/history.js index b0537ef1..7d37ea62 100644 --- a/demos/address-book/protected/pages/flex/html-template/history.js +++ b/demos/address-book/protected/pages/flex/html-template/history.js @@ -1,48 +1,48 @@ -// $Revision: 1.49 $ -// Vars -Vars = function(qStr) { - this.numVars = 0; - if(qStr != null) { - var nameValue, name; - var pairs = qStr.split('&'); - var pairLen = pairs.length; - for(var i = 0; i < pairLen; i++) { - var pair = pairs[i]; - if( (pair.indexOf('=')!= -1) && (pair.length > 3) ) { - var nameValue = pair.split('='); - var name = nameValue[0]; - var value = nameValue[1]; - if(this[name] == null && name.length > 0 && value.length > 0) { - this[name] = value; - this.numVars++; - } - } - } - } -} -Vars.prototype.toString = function(pre) { - var result = ''; - if(pre == null) { pre = ''; } - for(var i in this) { - if(this[i] != null && typeof(this[i]) != 'object' && typeof(this[i]) != 'function' && i != 'numVars') { - result += pre + i + '=' + this[i] + '&'; - } - } - if(result.length > 0) result = result.substr(0, result.length-1); - return result; -} -function getSearch(wRef) { - var searchStr = ''; - if(wRef.location.search.length > 1) { - searchStr = new String(wRef.location.search); - searchStr = searchStr.substring(1, searchStr.length); - } - return searchStr; -} -var lc_id = Math.floor(Math.random() * 100000).toString(16); -if (this != top) -{ - top.Vars = Vars; - top.getSearch = getSearch; - top.lc_id = lc_id; -} +// $Revision: 1.49 $ +// Vars +Vars = function(qStr) { + this.numVars = 0; + if(qStr != null) { + var nameValue, name; + var pairs = qStr.split('&'); + var pairLen = pairs.length; + for(var i = 0; i < pairLen; i++) { + var pair = pairs[i]; + if( (pair.indexOf('=')!= -1) && (pair.length > 3) ) { + var nameValue = pair.split('='); + var name = nameValue[0]; + var value = nameValue[1]; + if(this[name] == null && name.length > 0 && value.length > 0) { + this[name] = value; + this.numVars++; + } + } + } + } +} +Vars.prototype.toString = function(pre) { + var result = ''; + if(pre == null) { pre = ''; } + for(var i in this) { + if(this[i] != null && typeof(this[i]) != 'object' && typeof(this[i]) != 'function' && i != 'numVars') { + result += pre + i + '=' + this[i] + '&'; + } + } + if(result.length > 0) result = result.substr(0, result.length-1); + return result; +} +function getSearch(wRef) { + var searchStr = ''; + if(wRef.location.search.length > 1) { + searchStr = new String(wRef.location.search); + searchStr = searchStr.substring(1, searchStr.length); + } + return searchStr; +} +var lc_id = Math.floor(Math.random() * 100000).toString(16); +if (this != top) +{ + top.Vars = Vars; + top.getSearch = getSearch; + top.lc_id = lc_id; +} -- cgit v1.2.3