animClose: function (box, shadow, speed) {
          /* istanbul ignore if */
          if (typeof box === 'function') {
            options.animClose = box;
            return true;