Lines Matching refs:pair
234 return match[1].split(separator || '&').inject({}, function(hash, pair) { argument
235 if ((pair = pair.split('='))[0]) {
236 var name = decodeURIComponent(pair[0]);
237 var value = pair[1] ? decodeURIComponent(pair[1]) : undefined;
640 this.prototype._each.call(obj, function(pair) { argument
641 if (!pair.key) return;
643 if (pair.value && pair.value.constructor == Array) {
644 var values = pair.value.compact();
645 if (values.length < 2) pair.value = values.reduce();
647 key = encodeURIComponent(pair.key);
655 if (pair.value == undefined) pair[1] = '';
656 parts.push(pair.map(encodeURIComponent).join('='));
670 var pair = [key, value];
671 pair.key = key;
672 pair.value = value;
673 iterator(pair);
686 return $H(hash).inject(this, function(mergedHash, pair) { argument
687 mergedHash[pair.key] = pair.value;
713 return '#<PHash:{' + this.map(function(pair) { argument
714 return pair.map(Object.inspect).join(': ');
912 $H(extras).each(function(pair) { headers[pair.key] = pair.value }); argument
1193 $H({'id': 'id', 'className': 'class'}).each(function(pair) { argument
1194 var property = pair.first(), attribute = pair.last();
1982 var pair = {};
1983 pair[element.name] = value;
1984 return PHash.toQueryString(pair);