Lines Matching refs:value

124       var property = properties[i], value = source[property];
125 if (ancestor && Object.isFunction(value) &&
126 value.argumentNames().first() == "$super") {
127 var method = value;
128 value = (function(m) { function
132 value.valueOf = method.valueOf.bind(method);
133 value.toString = method.toString.bind(method);
135 this.prototype[property] = value;
184 var value = toJSON(object[property]);
185 if (!isUndefined(value))
186 results.push(property.toJSON() + ': ' + value);
407 interpret: function(value) { argument
408 return value == null ? '' : String(value);
514 var value = pair.length > 1 ? pair.join('=') : pair[0];
515 if (value != undefined) value = decodeURIComponent(value);
519 hash[key].push(value);
521 else hash[key] = value;
705 this._each(function(value) { argument
706 iterator.call(context, value, index++);
725 this.each(function(value, index) { argument
726 result = result && !!iterator.call(context, value, index);
735 this.each(function(value, index) { argument
736 if (result = !!iterator.call(context, value, index))
745 this.each(function(value, index) { argument
746 results.push(iterator.call(context, value, index));
753 this.each(function(value, index) { argument
754 if (iterator.call(context, value, index)) {
755 result = value;
764 this.each(function(value, index) { argument
765 if (iterator.call(context, value, index))
766 results.push(value);
778 this.each(function(value, index) { argument
779 if (filter.match(value))
780 results.push(iterator.call(context, value, index));
790 this.each(function(value) { argument
791 if (value == object) {
808 this.each(function(value, index) { argument
809 memo = iterator.call(context, memo, value, index);
816 return this.map(function(value) { argument
817 return value[method].apply(value, args);
824 this.each(function(value, index) { argument
825 value = iterator.call(context, value, index);
826 if (result == null || value >= result)
827 result = value;
835 this.each(function(value, index) { argument
836 value = iterator.call(context, value, index);
837 if (result == null || value < result)
838 result = value;
846 this.each(function(value, index) { argument
847 (iterator.call(context, value, index) ?
848 trues : falses).push(value);
855 this.each(function(value) { argument
856 results.push(value[property]);
863 this.each(function(value, index) { argument
864 if (!iterator.call(context, value, index))
865 results.push(value);
871 return this.map(function(value, index) { argument
873 value: value,
874 criteria: iterator.call(context, value, index)
892 return this.map(function(value, index) { argument
988 return this.select(function(value) { argument
989 return value != null;
994 return this.inject([], function(array, value) { argument
995 if (Object.isArray(value))
996 return array.concat(value.flatten());
997 array.push(value);
1004 return this.select(function(value) { argument
1005 return !values.include(value);
1014 return this.inject([], function(array, value, index) { argument
1015 if (0 == index || (sorted ? array.last() != value : !array.include(value)))
1016 array.push(value);
1023 return array.detect(function(value) { return item === value }); argument
1043 var value = Object.toJSON(object);
1044 if (!Object.isUndefined(value)) results.push(value);
1121 var value = this._object[key], pair = [key, value];
1123 pair.value = value;
1128 function set(key, value) {
1129 return this._object[key] = value;
1138 var value = this._object[key];
1140 return value;
1155 function index(value) { argument
1157 return pair.value === value;
1168 result.set(pair.key, pair.value);
1173 function toQueryPair(key, value) { argument
1174 if (Object.isUndefined(value)) return key;
1175 return key + '=' + encodeURIComponent(String.interpret(value));
1180 var key = encodeURIComponent(pair.key), values = pair.value;
1289 var value = this.start;
1290 while (this.include(value)) {
1291 iterator(value);
1292 value = value.succ();
1296 function include(value) { argument
1297 if (value < this.start)
1300 return value < this.end;
1301 return value <= this.end;
1466 $H(extras).each(function(pair) { headers[pair.key] = pair.value });
1971 var value = (element[property] || '').toString();
1972 if (value) result += ' ' + attribute + '=' + value.inspect(true);
2086 element.attributes[name].value;
2092 writeAttribute: function(element, name, value) { argument
2097 else attributes[name] = Object.isUndefined(value) ? true : value;
2101 value = attributes[attr];
2102 if (t.values[attr]) name = t.values[attr](element, value);
2103 if (value === false || value === null)
2105 else if (value === true)
2107 else element.setAttribute(name, value);
2192 var value = element.style[style];
2193 if (!value || value == 'auto') {
2195 value = css ? css[style] : null;
2197 if (style == 'opacity') return value ? parseFloat(value) : 1.0;
2198 return value == 'auto' ? null : value;
2223 setOpacity: function(element, value) {
2225 element.style.opacity = (value == 1 || value === '') ? '' :
2226 (value < 0.00001) ? 0 : value;
2503 var value = proceed(element);
2505 return value;
2521 var value = proceed(element);
2523 return value;
2539 var value = element.style[style];
2540 if (!value && element.currentStyle) value = element.currentStyle[style];
2543 if (value = (element.getStyle('filter') || '').match(/alpha\(opacity=(.*)\)/))
2544 if (value[1]) return parseFloat(value[1]) / 100;
2548 if (value == 'auto') {
2553 return value;
2556 Element.Methods.setOpacity = function(element, value) { argument
2567 if (value == 1 || value === '') {
2571 } else if (value < 0.00001) value = 0;
2573 'alpha(opacity=' + (value * 100) + ')';
2621 return node ? node.value : "";
2627 var value = el.getAttribute('onclick');
2630 if (String(value).indexOf('{') > -1) {
2640 else if (value === '') {
2670 checked: function(element, value) { argument
2671 element.checked = !!value;
2674 style: function(element, value) { argument
2675 element.style.cssText = value ? value : '';
2741 Element.Methods.setOpacity = function(element, value) {
2743 element.style.opacity = (value == 1) ? 0.999999 :
2744 (value === '') ? '' : (value < 0.00001) ? 0 : value;
2750 Element.Methods.setOpacity = function(element, value) {
2752 element.style.opacity = (value == 1 || value === '') ? '' :
2753 (value < 0.00001) ? 0 : value;
2755 if (value == 1)
2902 var value = methods[property];
2903 if (Object.isFunction(value) && !(property in element))
2904 element[property] = value.methodize();
2996 var value = methods[property];
2997 if (!Object.isFunction(value)) continue;
2999 destination[property] = value.methodize();
3117 store: function(element, key, value) { argument
3123 Element.getStorage(element).set(key, value);
3131 var hash = Element.getStorage(element), value = hash.get(key);
3133 if (Object.isUndefined(value)) {
3135 value = defaultValue;
3138 return value;
3549 value = 'x'
3550 el[propName] = value;
3551 isBuggy = (el.getAttribute(propName) === value);
3716 attr: function(nodes, root, attr, value, operator, combinator) { argument
3723 if (handler(nodeValue, value)) results.push(node);
3728 pseudo: function(nodes, name, value, root, combinator) { argument
3731 return Selector.pseudos[name](nodes, value, root);
3736 'first-child': function(nodes, value, root) { argument
3743 'last-child': function(nodes, value, root) { argument
3750 'only-child': function(nodes, value, root) { argument
3819 'empty': function(nodes, value, root) { argument
3837 'enabled': function(nodes, value, root) { argument
3844 'disabled': function(nodes, value, root) { argument
3850 'checked': function(nodes, value, root) { argument
3927 var key, value, submitted = false, submit = options.submit;
3931 key = element.name; value = $(element).getValue();
3932 if (value != null && element.type != 'file' && (element.type != 'submit' || (!submitted &&
3936 result[key].push(value);
3938 else result[key] = value;
4054 var value = element.getValue();
4055 if (value != undefined) {
4057 pair[element.name] = value;
4070 setValue: function(element, value) { argument
4073 Form.Element.Serializers[method](element, value);
4078 $(element).value = '';
4083 return $(element).value != '';
4119 input: function(element, value) { argument
4123 return Form.Element.Serializers.inputSelector(element, value);
4125 return Form.Element.Serializers.textarea(element, value);
4129 inputSelector: function(element, value) { argument
4130 if (Object.isUndefined(value)) return element.checked ? element.value : null;
4131 else element.checked = !!value;
4134 textarea: function(element, value) { argument
4135 if (Object.isUndefined(value)) return element.value;
4136 else element.value = value;
4139 select: function(element, value) { argument
4140 if (Object.isUndefined(value))
4144 var opt, currentValue, single = !Object.isArray(value);
4149 if (currentValue == value) {
4154 else opt.selected = value.include(currentValue);
4176 return Element.extend(opt).hasAttribute('value') ? opt.value : opt.text;
4191 var value = this.getValue();
4192 if (Object.isString(this.lastValue) && Object.isString(value) ?
4193 this.lastValue != value : String(this.lastValue) != String(value)) {
4194 this.callback(this.element, value);
4195 this.lastValue = value;
4227 var value = this.getValue();
4228 if (this.lastValue != value) {
4229 this.callback(this.element, value);
4230 this.lastValue = value;
4560 var eventName = pair.key, responders = pair.value;