code: function execCallbacks(object) {
          if (object.hasClass('active')) {
            if (typeof(options.onOpen) === "function") {
              options.onOpen.call(this, object.parent());
            }
          } else {
            if (typeof(options.onClose) === "function") {
              options.onClose.call(this, object.parent());
            }
          }
        }
docs: Handle callbacks