Lines Matching refs:object

109   inspect: function(object) {  argument
111 if (Object.isUndefined(object)) return 'undefined';
112 if (object === null) return 'null';
113 return object.inspect ? object.inspect() : String(object);
120 toJSON: function(object) { argument
121 var type = typeof object;
126 case 'boolean': return object.toString();
129 if (object === null) return 'null';
130 if (object.toJSON) return object.toJSON();
131 if (Object.isElement(object)) return;
134 for (var property in object) {
135 var value = Object.toJSON(object[property]);
143 toQueryString: function(object) { argument
144 return $H(object).toQueryString();
147 toHTML: function(object) { argument
148 return object && object.toHTML ? object.toHTML() : String.interpret(object);
151 keys: function(object) { argument
153 for (var property in object)
158 values: function(object) { argument
160 for (var property in object)
161 values.push(object[property]);
165 clone: function(object) { argument
166 return Object.extend({ }, object);
169 isElement: function(object) { argument
170 return object && object.nodeType == 1;
173 isArray: function(object) { argument
174 return object != null && typeof object == "object" &&
175 'splice' in object && 'join' in object;
178 isHash: function(object) { argument
179 return object instanceof Hash;
182 isFunction: function(object) { argument
183 return typeof object == "function";
186 isString: function(object) { argument
187 return typeof object == "string";
190 isNumber: function(object) { argument
191 return typeof object == "number";
194 isUndefined: function(object) { argument
195 return typeof object == "undefined";
207 var __method = this, args = $A(arguments), object = args.shift();
209 return __method.apply(object, args.concat($A(arguments)));
214 var __method = this, args = $A(arguments), object = args.shift();
216 return __method.apply(object, [event || window.event].concat(args));
523 interpolate: function(object, pattern) { argument
524 return new Template(this, pattern).evaluate(object);
558 evaluate: function(object) { argument
559 if (Object.isFunction(object.toTemplateReplacements))
560 object = object.toTemplateReplacements();
563 if (object == null) return '';
568 var ctx = object, expr = match[3];
676 include: function(object) { argument
678 if (this.indexOf(object) != -1) return true;
682 if (value == object) {
907 this.each(function(object) { argument
908 var value = Object.toJSON(object);
984 function $H(object) { argument
985 return new Hash(object);
996 initialize: function(object) {
997 this._object = Object.isHash(object) ? object.toObject() : Object.clone(object);
1042 merge: function(object) {
1043 return this.clone().update(object);
1046 update: function(object) {
1047 return new Hash(object).inject(this, function(result, pair) {