Explorar o código

popover has hooks

Adam Shaw %!s(int64=8) %!d(string=hai) anos
pai
achega
57e70a5e4e
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/basic/DayGrid.limit.js

+ 3 - 1
src/basic/DayGrid.limit.js

@@ -256,7 +256,7 @@ DayGrid.mixin({
 				// kill everything when the popover is hidden
 				// notify events to be removed
 				if (_this.popoverSegs) {
-					_this.triggerEventDestroyForSegs(_this.popoverSegs);
+					_this.triggerBeforeEventSegsDestroyed(_this.popoverSegs);
 				}
 				_this.segPopover.removeElement();
 				_this.segPopover = null;
@@ -279,6 +279,8 @@ DayGrid.mixin({
 		// the popover doesn't live within the grid's container element, and thus won't get the event
 		// delegated-handlers for free. attach event-related handlers to the popover.
 		this.bindAllSegHandlersToEl(this.segPopover.el);
+
+		this.triggerAfterEventSegsRendered(segs);
 	},