code: function doaction(type, data) {
  		if (gui.hosted) {
  			gui.Action.ascendGlobal(document, type, data);
  		}
  	}
docs: Dispatch global action to hosting document (if any).
  This will most likely get picked up by the containing
  {gui.IframeSpirit} so that it knows what's going on.
  @param {string} type
  @param @optional {object} data