title: ie new object - Object doesn't support this action
body: <p>Get an error in IE(all). Every other browser handles it fine.</p>
  
  <p>Object doesn't support this action </p>
  
  <pre><code>var process = new $.ProcessingModal({ message: "Saving...", wait: 1000 });
  process.open();
  </code></pre>
  
  <p>basic function setup
  $.ProcessingModal = function (options) {...}</p>
  
  <p>even tried the Object.create.</p>
  
  <p>If I could only stop supporting IE.</p>
  
  <pre><code>$.ProcessingModal = function (options) {
      // default options
      this.defaultOptions = {
          message: 'Processing...',   // message to appear in the process box.    
          wait: 1000,                 // time to wait before showing.
          timeout: null
      };
      // open the process modal
      this.open = function () {
          var o = this;
          var opts = o.defaultOptions;
          opts.timeout = setTimeout(function () {
              $("#process_Modal").modal({
                  modalCss: "modH_adj  modW_5 grey_modal",
                  onShow: function (dialog) {
                      SetModalFocus(dialog);
                      $("p#process_message &gt; strong").text(opts.message);
                  },
                  close: false,
                  containerId: 'payce_modal_processing'
              });
          }, opts.wait);
  
          $('body').ajaxStart(function (opts) {
              closeModal(); //close any modal that maybe open.
          });
          $('body').ajaxComplete(function (opts) {
              o.close(opts);
          });
      };
      this.close = function (opts) {
          if (opts == null)
              opts = this.defaultOptions;
          clearTimeout(opts.timeout);
          $.modal.close();
      };
      // set any options.
      $.extend(this.defaultOptions, options);
  };
  </code></pre>