Skip to content

Instantly share code, notes, and snippets.

Tim Vasil timvasil

View GitHub Profile
View jquery.parseparams.js
/**
* $.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;
You can’t perform that action at this time.