Lines Matching +refs:val +refs:obj
1953 * var obj = document.createElement("object");
1954 * Y.Lang.isFunction(obj.getAttribute) // reports false in IE
2423 @param {Object} obj Object to test.
2432 YArray.test = function (obj) {
2435 if (Lang.isArray(obj)) {
2437 } else if (Lang.isObject(obj)) {
2442 if ('length' in obj && !obj.tagName && !obj.alert && !obj.apply) {
2814 * @param {Object} obj Prototype object.
2818 O = Y.Object = Lang._isNative(Object.create) ? function (obj) {
2824 return Object.create(obj);
2830 return function (obj) {
2831 F.prototype = obj;
2885 * `obj.hasOwnProperty()`.
2888 * @param {Object} obj Object to test.
2893 owns = O.owns = function (obj, key) {
2894 return !!obj && hasOwn.call(obj, key);
2901 * @param {Object} obj Object to test.
2925 * @param {Object} obj An object.
2929 O.keys = Lang._isNative(Object.keys) ? Object.keys : function (obj) {
2930 if (!Lang.isObject(obj)) {
2937 if (hasProtoEnumBug && typeof obj === 'function') {
2938 for (key in obj) {
2939 if (owns(obj, key) && key !== 'prototype') {
2944 for (key in obj) {
2945 if (owns(obj, key)) {
2955 if (owns(obj, key)) {
2977 * @param {Object} obj An object.
2981 O.values = function (obj) {
2982 var keys = O.keys(obj),
2988 values.push(obj[keys[i]]);
2998 * @param {Object} obj An object.
3002 O.size = function (obj) {
3004 return O.keys(obj).length;
3015 * @param {Object} obj An object.
3020 O.hasValue = function (obj, value) {
3021 return Y.Array.indexOf(O.values(obj), value) > -1;
3033 * @param {Object} obj Object to enumerate.
3037 * @param {Object} fn.obj Object being enumerated.
3044 O.each = function (obj, fn, thisObj, proto) {
3047 for (key in obj) {
3048 if (proto || owns(obj, key)) {
3049 fn.call(thisObj || Y, obj[key], key, obj);
3065 * @param {Object} obj Object to enumerate.
3069 * @param {Object} fn.obj Object being enumerated.
3076 O.some = function (obj, fn, thisObj, proto) {
3079 for (key in obj) {
3080 if (proto || owns(obj, key)) {
3081 if (fn.call(thisObj || Y, obj[key], key, obj)) {
3129 * @param val {Any} The new value for the sub-attribute.
3133 O.setValue = function(o, path, val) {
3145 ref[p[i]] = val;
3158 * @param {Object} obj An object.
3163 O.isEmpty = function (obj) {
3164 return !O.keys(Object(obj)).length;
6254 var i, j, val, f, group, groupName, self = this;
6259 val = o[i];
6261 self.require(val);
6264 if (typeof val === 'string') {
6266 val = {
6267 defaultSkin: val
6271 Y.mix(self.skin, val, true);
6273 for (j in val) {
6274 if (val.hasOwnProperty(j)) {
6277 group = val[j];
6287 oeach(val, self.addModule, self);
6289 oeach(val, self.addAlias, self);
6291 this.groups.gallery.update(val, o);
6295 self[i] = val;