/**
 * Generated by Apache Royale Compiler from org\apache\royale\html\util\addElementToWrapper.as
 * org.apache.royale.html.util.addElementToWrapper
 *
 * @fileoverview
 *
 * @suppress {checkTypes|accessControls}
 */

goog.provide('org.apache.royale.html.util.addElementToWrapper');

goog.require('org.apache.royale.core.UIBase');
goog.require('org.apache.royale.core.WrappedHTMLElement');



/**
 * @royaleignorecoercion org.apache.royale.core.WrappedHTMLElement
 * @export
 * @param {org.apache.royale.core.UIBase} wrapper
 * @param {string} type
 * @return {Object}
 */
org.apache.royale.html.util.addElementToWrapper = function(wrapper, type) {
  var /** @type {Object} */ elem = document.createElement(type);
  wrapper.element = elem;
  return elem;
}