* Compiles a querystring * Returns string representation of the object * * @param {Object} * @api private
(obj)
| 817 | * @api private |
| 818 | */ |
| 819 | function encode$1(obj) { |
| 820 | var str = ''; |
| 821 | for (var i in obj) { |
| 822 | if (obj.hasOwnProperty(i)) { |
| 823 | if (str.length) str += '&'; |
| 824 | str += encodeURIComponent(i) + '=' + encodeURIComponent(obj[i]); |
| 825 | } |
| 826 | } |
| 827 | return str; |
| 828 | } |
| 829 | /** |
| 830 | * Parses a simple querystring into an object |
| 831 | * |