The Communications object, in a Household context.

@param {Object} f1          - the F1 object
@param {Number} householdID - the Household ID, for context
503510
function HouseholdCommunications (f1, householdID) {
  if (!householdID) {
    throw new Error('HouseholdCommunications requires a household ID!')
  }
  Communications.call(this, f1, {
    path: '/Households/' + householdID + '/Communications'
  })
}
990229
function setFontFamily(fontFamily) {
        var editor = EditorManager.getCurrentFullEditor();

        if (currFontFamily === fontFamily) {
            return;
        }

        _removeDynamicFontFamily();
        if (fontFamily) {
            _addDynamicFontFamily(fontFamily);
        }

        exports.trigger("fontFamilyChange", fontFamily, currFontFamily);
        currFontFamily = fontFamily;
        prefs.set("fontFamily", fontFamily);

        if (editor) {
            editor.refreshAll();
        }
    }
258653
public Husband addHusbandToFamily(final Family family,
            final Person person) {
        if (family == null || person == null) {
            return new Husband();
        }
        final FamS famS = new FamS(person, "FAMS",
                new ObjectId(family.getString()));
        final Husband husband = new Husband(family, "Husband",
                new ObjectId(person.getString()));
        family.insert(husband);
        person.insert(famS);
        return husband;
    }
1108361
public void setParentId(String parentId)
   {
      this.parentId = (parentId == null || parentId.equals("") ? null : parentId);
      setGroupName(groupName);
   }
403954
function ( fnc, oThis ) {
            if ( Function.prototype.bind ) {
                ixBand.bind = function ( fnc, oThis ) {
                    return fnc.bind( oThis );
                };
            } else {
                ixBand.bind = function( fnc, oThis ) {
                    var fToBind = fnc,
                        fNOP    = function () {},
                        fBound  = function () {
                            return fToBind.apply( fnc instanceof fNOP ? fnc : oThis, Array.prototype.slice.call(arguments) );
                        };
    
                    if ( fnc.prototype ) {
                        fNOP.prototype = fnc.prototype;
                    }
                    fBound.prototype = new fNOP();
                    return fBound;
                };
            }
    
            return ixBand.bind( fnc, oThis );
        }
678845
function Element (driver, parent, selector, id) {
  this._driver = driver;
  this._parent = parent;
  this._selector = selector;
  this._id = id;
}
1003452
function CommunicationAbstract(object, layerID, assignID) {
		var self = this;

		this.assignID = assignID;
		this.layerID = layerID;
		this.online = false;
		this.object = object;
		this.handlers = {};
		this.handle = null;

		this.on('message', function (message) {
			this.handle.handleMessage(message);
		});

		this.on('ready', function () {
			self.online = true;
		});

		this.on('close', function () {
			self.online = false;
		});
	}
338944
function proxyFunctionProperties (remoteMemberFunction, metaId, name) {
  let loaded = false

  // Lazily load function properties
  const loadRemoteProperties = () => {
    if (loaded) return
    loaded = true
    const command = 'ELECTRON_BROWSER_MEMBER_GET'
    const meta = ipcRendererInternal.sendSync(command, contextId, metaId, name)
    setObjectMembers(remoteMemberFunction, remoteMemberFunction, meta.id, meta.members)
  }

  return new Proxy(remoteMemberFunction, {
    set: (target, property, value, receiver) => {
      if (property !== 'ref') loadRemoteProperties()
      target[property] = value
      return true
    },
    get: (target, property, receiver) => {
      if (!target.hasOwnProperty(property)) loadRemoteProperties()
      const value = target[property]
      if (property === 'toString' && typeof value === 'function') {
        return value.bind(target)
      }
      return value
    },
    ownKeys: (target) => {
      loadRemoteProperties()
      return Object.getOwnPropertyNames(target)
    },
    getOwnPropertyDescriptor: (target, property) => {
      const descriptor = Object.getOwnPropertyDescriptor(target, property)
      if (descriptor) return descriptor
      loadRemoteProperties()
      return Object.getOwnPropertyDescriptor(target, property)
    }
  })
}
657763
function(node, id, propertyName) {
			if(this.hasRootID(node, id, propertyName) === false){
				var rootids = [];
				if(modules.domUtils.hasAttribute(node,'rootids')){
					rootids = modules.domUtils.getAttributeList(node,'rootids');
				}
				rootids.push('id' + id + '-' + propertyName);
				modules.domUtils.setAttribute(node, 'rootids', rootids.join(' '));
			}
		}
728957
function showChildren(pid) {
	// http://ibl.api.bbci.co.uk/ibl/v1/episodes/b04nv6kr?rights=mobile&availability=available&api_key=APIKEY
	var query = nitro.newQuery();
	query.add(ibl.commonRightsWeb);
	query.add(ibl.commonAvailabilityAvailable);
	nitro.make_request(ibl.host,ibl.getProgrammes(pid),ibl_key,query,{},function(obj){
		for (var i in obj.programmes) {
			var p = obj.programmes[i];
			for (var j in p.initial_children) {
				var c = p.initial_children[j];
				console.log('*'+c.id+' '+c.type+' '+c.title+' '+c.subtitle);
				//console.log(JSON.stringify(c,null,2));
				if ((p.type == 'brand') || (p.type == 'series')) {
					showChildren(p.id);
				}
			}
		}
	});
}
868124
function modTryInvokeFactory( id ) {
        var module = modModules[ id ];

        if ( module && module.invokeFactory ) {
            module.invokeFactory();
        }
    }
1351292
function (id, fn) {
            id = (id + EMPTY).match(RE_ID_STR)[1];
            var retryCount = 1;
            var timer = util.later(function () {
                    if (++retryCount > POLL_RETIRES) {
                        timer.cancel();
                        return;
                    }
                    var node = doc.getElementById(id);
                    if (node) {
                        fn(node);
                        timer.cancel();
                    }
                }, POLL_INTERVAL, true);
        }
1228216
function (id) {
      return typeof id === 'number' ?
        clear(id) :
        void(
          drop(qframe, id) ||
          drop(qidle, id) ||
          drop(qframex, id) ||
          drop(qidlex, id)
        );
    }
184328
public void setId(final Integer id) {
        if (id == null && this.id == null) {
            return;
        } else if (id == null) {
            removeChild(this.id);
            this.id = null;
        } else if (this.id == null) {
            this.id = new KeyValueNode<Integer>(CommonConstants.CS_ID_TITLE, id);
            nodes.addFirst(this.id);
            if (this.id.getParent() != null) {
                this.id.removeParent();
            }
            this.id.setParent(this);
        } else {
            this.id.setValue(id);
        }
    }
1060503
function (baseId) {
            baseId = this._id + "_" + baseId.replace(/\+/g, "");

            // Calculate and return the new id
            var prefixIds = this._prefixIds;
            var id = prefixIds[baseId] = (prefixIds[baseId] || 0) + 1;
            return baseId + "_auto_" + id;
        }
1247368
function PersonCommunications (f1, personID) {
  if (!personID) {
    throw new Error('PersonCommunications requires a person ID!')
  }
  Communications.call(this, f1, {
    path: '/People/' + personID + '/Communications'
  })
}
675180
function (fn) {
    if (fn.length === 0) {
      var orgFn = fn;
      fn = function(callback) {
        callback(null, orgFn());
      };
    }

    this.getNewAggregateId = fn;

    return this;
  }