var Class = require( '/scripts/libraries/ptclass' ),
  Abstract = require( 'ui/Abstract' ),
  Dialog;

/**
 * Representation of a button element preconfigured with a 'next' event
 * @class NextButton
 * @constructor
 * @extends Button
 * @param {HTMLElement} element The HTML element surrounded by the control
 * @param {Object} settings Configuration properties for this instance
 */
Dialog = Class.create( Abstract,  ( function () {

   // RETURN METHODS OBJECT
   return {
     /**
      * PTClass constructor 
      * @method initialize
      * @public
      * @param {Object} $super Pointer to superclass constructor
      * @param {Object} $element JQuery object for the element wrapped by the component
      * @param {Object} settings Configuration settings
      */    
     initialize: function ( $super, $element, settings ) {

       // PRIVATE INSTANCE PROPERTIES

       /**
        * Default configuration values
        * @property defaults
        * @type Object
        * @private
        * @final
        */
       var defaults = {
         autoOpen: false
       };
       
       // MIX THE DEFAULTS INTO THE SETTINGS VALUES
       _.defaults( settings, defaults );

       // CALL THE PARENT'S CONSTRUCTOR
       $super( $element, settings );

     	 $element.dialog(settings);
     	 $element.on('open', function() {
     	   $(this).dialog('open');
       });
    	 $element.on('close', function() {
         $(this).dialog('close');
       });
     }
  };
  
}() ));

//Export to CommonJS Loader
if( module && module.exports ) {
  module.exports = Dialog;
}
@@ -127,56 +127,14 @@
 f a 
-button element preconfigured with a 'next' event
+Dialog
 %0A * 
@@ -144,18 +144,14 @@
 ass 
-NextButton
+Dialog
 %0A * 
@@ -179,14 +179,16 @@
 nds 
-Button
+Abstract
 %0A * 

clean up comments