Created
August 23, 2010 08:49
Revisions
-
cafedomingo renamed this gist
Oct 15, 2010 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
cafedomingo renamed this gist
Oct 15, 2010 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
cafedomingo renamed this gist
Oct 15, 2010 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
cafedomingo created this gist
Aug 23, 2010 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ serializeToQueryString(obj, props) { var params = []; for(prop in obj) { if(obj.hasOwnProperty(prop) && (!(props instanceOf Array) || props.indexOf(prop) >= 0) { params.push(prop + "=" encodeURIComponent(obj[prop])); } } return "?" + params.join("&"); }