docs: function mouseup_callback(e) {
                  var press_time = new Date().getTime() - mouse_down_time;
                  if (press_time < duration) {
                      // cancel the timeout
                      clearTimeout(timeout);
  
                      // call the shortCallback if provided
                      if (typeof shortCallback === "function") {
                          shortCallback.call($(this), e);
                      } else if (typeof shortCallback === "undefined") {
                          ;
                      } else {
                          $.error('Optional callback for short press should be a function.');
                      }
                  }
              }