Lines Matching refs:obj

32   constructor(obj) {  argument
33 constructorMethod(this, obj);
90 function constructorMethod(result, obj) { argument
91 result.__proxy = obj;
92 Object.keys(obj).forEach(key => {
124 function newDistributed(obj) { argument
126 if (obj == null) {
130 return new Distributed(obj);
167 function isAsset(obj) { argument
168 if (Object.prototype.toString.call(obj) !== '[object Object]') {
171 …let length = Object.prototype.hasOwnProperty.call(obj, ASSET_KEYS[STATUS_INDEX]) ? ASSET_KEYS.leng…
172 if (Object.keys(obj).length !== length) {
175 if (Object.prototype.hasOwnProperty.call(obj, ASSET_KEYS[STATUS_INDEX]) &&
176 …typeof obj[ASSET_KEYS[STATUS_INDEX]] !== 'number' && typeof obj[ASSET_KEYS[STATUS_INDEX]] !== 'und…
180 if (!Object.prototype.hasOwnProperty.call(obj, key) || typeof obj[key] !== 'string') {
235 function joinSession(version, obj, objectId, sessionId, context) { argument
237 if (obj == null || sessionId == null || sessionId === '') {
253 Object.keys(obj).forEach(key => {
255 if (isAsset(obj[key])) {
256 defineAsset(object, key, obj[key]);
268 if (obj[key] !== undefined) {
269 object[key] = obj[key];
281 function leaveSession(version, obj) { argument
283 if (obj == null || obj[SESSION_ID] == null || obj[SESSION_ID] === '') {
287 Object.keys(obj).forEach(key => {
288 Object.defineProperty(obj, key, {
289 value: obj[key],
294 if (isAsset(obj[key])) {
295 Object.keys(obj[key]).forEach(subKey => {
296 Object.defineProperty(obj[key], subKey, {
297 value: obj[key][subKey],
306 distributedObject.destroyObjectSync(version, obj);
307 delete obj[SESSION_ID];
310 function onWatch(version, type, obj, callback) { argument
311 console.info('start on ' + obj[SESSION_ID]);
312 if (obj[SESSION_ID] != null && obj[SESSION_ID] !== undefined && obj[SESSION_ID].length > 0) {
313 distributedObject.on(version, type, obj, callback);
317 function offWatch(version, type, obj, callback = undefined) { argument
318 console.info('start off ' + obj[SESSION_ID] + ' ' + callback);
319 if (obj[SESSION_ID] != null && obj[SESSION_ID] !== undefined && obj[SESSION_ID].length > 0) {
321 distributedObject.off(version, type, obj, callback);
323 distributedObject.off(version, type, obj);
328 function newDistributedV9(context, obj) { argument
338 if (typeof obj !== 'object') {
341 if (obj == null) {
345 return new DistributedV9(obj, context);
350 constructor(obj, context) { argument
352 constructorMethod(this, obj);