Skip to content

Instantly share code, notes, and snippets.

View timvasil's full-sized avatar

Tim Vasil timvasil

View GitHub Profile
/**
* $.parseParams - parse query string paramaters into an object.
*/
(function($) {
var re = /([^&=]+)=?([^&]*)/g;
var decode = function(str) {
return decodeURIComponent(str.replace(/\+/g, ' '));
};
$.parseParams = function(query) {
var params = {}, e;