From 4fa310c033ce17ab3f400e937becdea313b78bb1 Mon Sep 17 00:00:00 2001 From: Zach Wise Date: Sun, 8 Apr 2012 23:32:30 -0500 Subject: [PATCH] No real changes --- source/js/VMM.Util.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/js/VMM.Util.js b/source/js/VMM.Util.js index fc4bbae..dd3b5c4 100644 --- a/source/js/VMM.Util.js +++ b/source/js/VMM.Util.js @@ -351,7 +351,10 @@ if(typeof VMM != 'undefined' && typeof VMM.Util == 'undefined') { /* Get URL Variables ================================================== */ // var somestring = VMM.Util.getUrlVars(str_url)["varname"]; - getUrlVars: function(str) { + getUrlVars: function(string) { + + var str = string.toString(); + var vars = [], hash; var hashes = str.slice(str.indexOf('?') + 1).split('&'); for(var i = 0; i < hashes.length; i++) { @@ -359,10 +362,10 @@ if(typeof VMM != 'undefined' && typeof VMM.Util == 'undefined') { vars.push(hash[0]); vars[hash[0]] = hash[1]; } - trace(vars); + return vars; }, - + /* Cleans up strings to become real HTML ================================================== */ toHTML: function(text) {