Lines Matching refs:value

148 String.interpret = function(value){  argument
149 return value == null ? '' : String(value);
237 var value = pair[1] ? decodeURIComponent(pair[1]) : undefined;
242 if (value) hash[name].push(value);
244 else hash[name] = value;
326 this._each(function(value) { argument
328 iterator(value, index++);
348 this.each(function(value, index) { argument
349 result = result && !!(iterator || Prototype.K)(value, index);
357 this.each(function(value, index) { argument
358 if (result = !!(iterator || Prototype.K)(value, index))
366 this.each(function(value, index) { argument
367 results.push((iterator || Prototype.K)(value, index));
374 this.each(function(value, index) { argument
375 if (iterator(value, index)) {
376 result = value;
385 this.each(function(value, index) { argument
386 if (iterator(value, index))
387 results.push(value);
394 this.each(function(value, index) { argument
395 var stringValue = value.toString();
397 results.push((iterator || Prototype.K)(value, index));
404 this.each(function(value) { argument
405 if (value == object) {
422 this.each(function(value, index) { argument
423 memo = iterator(memo, value, index);
430 return this.map(function(value) { argument
431 return value[method].apply(value, args);
437 this.each(function(value, index) { argument
438 value = (iterator || Prototype.K)(value, index);
439 if (result == undefined || value >= result)
440 result = value;
447 this.each(function(value, index) { argument
448 value = (iterator || Prototype.K)(value, index);
449 if (result == undefined || value < result)
450 result = value;
457 this.each(function(value, index) { argument
458 ((iterator || Prototype.K)(value, index) ?
459 trues : falses).push(value);
466 this.each(function(value, index) { argument
467 results.push(value[property]);
474 this.each(function(value, index) { argument
475 if (!iterator(value, index))
476 results.push(value);
482 return this.map(function(value, index) { argument
483 return {value: value, criteria: iterator(value, index)};
500 return this.map(function(value, index) { argument
558 return this.select(function(value) { argument
559 return value != null;
564 return this.inject([], function(array, value) { argument
565 return array.concat(value && value.constructor == Array ?
566 value.flatten() : [value]);
572 return this.select(function(value) { argument
573 return !values.include(value);
592 return this.inject([], function(array, value) { argument
593 return array.include(value) ? array : array.concat([value]);
643 if (pair.value && pair.value.constructor == Array) {
644 var values = pair.value.compact();
645 if (values.length < 2) pair.value = values.reduce();
648 values.each(function(value) { argument
649 value = value != undefined ? encodeURIComponent(value) : '';
650 parts.push(key + '=' + encodeURIComponent(value));
655 if (pair.value == undefined) pair[1] = '';
667 var value = this[key];
668 if (value && value == PHash.prototype[key]) continue;
670 var pair = [key, value];
672 pair.value = value;
687 mergedHash[pair.key] = pair.value;
695 var value = this[arguments[i]];
696 if (value !== undefined){
697 if (result === undefined) result = value;
700 result.push(value)
733 var value = this.start;
734 while (this.include(value)) {
735 iterator(value);
736 value = value.succ();
740 include: function(value) { argument
741 if (value < this.start)
744 return value < this.end;
745 return value <= this.end;
912 $H(extras).each(function(pair) { headers[pair.key] = pair.value });
1123 var value = methods[property];
1124 if (typeof value == 'function' && !(property in element))
1125 element[property] = cache.findOrStore(value);
1134 findOrStore: function(value) { argument
1135 return this[value] = this[value] || function() {
1136 return value.apply(null, [this].concat($A(arguments)));
1195 var value = (element[property] || '').toString();
1196 if (value) result += ' ' + attribute + '=' + value.inspect(true);
1367 var value = element.style[style];
1368 if (!value) {
1371 value = css ? css[style] : null;
1373 value = element.currentStyle[style];
1377 …if((value == 'auto') && ['width','height'].include(style) && (element.getStyle('display') != 'none…
1378 value = element['offset'+style.capitalize()] + 'px';
1381 if (Element.getStyle(element, 'position') == 'static') value = 'auto';
1383 if(value) return parseFloat(value);
1384 if(value = (element.getStyle('filter') || '').match(/alpha\(opacity=(.*)\)/))
1385 if(value[1]) return parseFloat(value[1]) / 100;
1388 return value == 'auto' ? null : value;
1394 var value = style[name];
1396 if (value == 1) {
1397 value = (/Gecko/.test(navigator.userAgent) &&
1401 } else if(value === '') {
1405 if(value < 0.00001) value = 0;
1408 'alpha(opacity='+value*100+')';
1411 element.style[name.camelize()] = value;
1595 var value = methods[property];
1597 destination[property] = cache.findOrStore(value);
1761 … params.attributes.push({name: match[2], operator: match[3], value: match[4] || match[5] || ''});
1796 var value = 'element.readAttribute(' + attribute.name.inspect() + ')';
1798 return value + ' && ' + value + '.split(' + delimiter.inspect() + ')';
1802 case '=': conditions.push(value + ' == ' + attribute.value.inspect()); break;
1803 …case '~=': conditions.push(splitValueBy(' ') + '.include(' + attribute.value.inspect() + ')')…
1805 … splitValueBy('-') + '.first().toUpperCase() == ' + attribute.value.toUpperCase().inspect()
1807 case '!=': conditions.push(value + ' != ' + attribute.value.inspect()); break;
1882 var key = element.name, value = $(element).getValue();
1883 if (value != undefined) {
1886 result[key].push(value);
1888 else result[key] = value;
1980 var value = element.getValue();
1981 if (value != undefined) {
1983 pair[element.name] = value;
1997 $(element).value = '';
2002 return $(element).value != '';
2046 return element.checked ? element.value : null;
2050 return element.value;
2076 return Element.extend(opt).hasAttribute('value') ? opt.value : opt.text;
2098 var value = this.getValue();
2099 var changed = ('string' == typeof this.lastValue && 'string' == typeof value
2100 ? this.lastValue != value : String(this.lastValue) != String(value));
2102 this.callback(this.element, value);
2103 this.lastValue = value;
2138 var value = this.getValue();
2139 if (this.lastValue != value) {
2140 this.callback(this.element, value);
2141 this.lastValue = value;