Browse Source

No real changes

pull/33/merge
Zach Wise 13 years ago
parent
commit
4fa310c033
  1. 7
      source/js/VMM.Util.js

7
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,7 +362,7 @@ if(typeof VMM != 'undefined' && typeof VMM.Util == 'undefined') {
vars.push(hash[0]);
vars[hash[0]] = hash[1];
}
trace(vars);
return vars;
},

Loading…
Cancel
Save