code: function setGUIType(name, nwg) {
  	gui_type = name;
  
  	if ( gui_type == 'nw' ) {
  		if ( nwg )
  			nwGUI = nwg;
  		else
  			throw new Error('Did not get nw.gui object with GUI type "nw"');
  	}
  }
docs: Sets the GUI type
  
  @private
  @method setGUIType
  @param {String} name The GUI ID (`nw`, `nw13`, `electron`)
  @param {Object} [nwg] The NW.js `nw.gui` object for NW.js v0.12 and lower