I hereby claim:
- I am cafedomingo on github.
- I am cafedomingo (https://keybase.io/cafedomingo) on keybase.
- I have a public key ASBhaYp3Vvk5tOWwTVhNY_9KUZ61B40958b-Th7AQvo4Ego
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| runOnce = function( func ) { | |
| return ( function() { | |
| var hasRun = false; | |
| return function() { | |
| if ( !hasRun ) | |
| { | |
| hasRun = true; | |
| func.apply( this, arguments ); | |
| } | |
| }; |
| 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])); | |
| } |