code: function create() {
      var shouldUseTouch = _utilities2.default.getMode() === 'touch';
  
      _widget2.default.create.call(this);
  
      Object.assign(this, DOMWidget.defaults);
  
      // ALL INSTANCES OF DOMWIDGET MUST IMPLEMENT CREATE ELEMENT
      if (typeof this.createElement === 'function') {
  
        /**
         * The DOM element used by the DOMWidget
         * @memberof DOMWidget
         * @instance
         */
        this.element = this.createElement();
      } else {
        throw new Error('widget inheriting from DOMWidget does not implement createElement method; this is required.');
      }
    }
docs: Create a new DOMWidget instance
  @memberof DOMWidget
  @constructs
  @static