From 66f2fc86a60f8bb8095518d8bef2a86b82584616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sat, 13 Jan 2018 20:08:09 +0100 Subject: [PATCH] CategoryBase: call hooks categoryOpen and categoryClose --- src/CategoryBase.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CategoryBase.js b/src/CategoryBase.js index 8d648156..58a099d7 100644 --- a/src/CategoryBase.js +++ b/src/CategoryBase.js @@ -131,6 +131,8 @@ CategoryBase.prototype.open = function () { this.dom.classList.add('open') this.isOpen = true + + call_hooks('categoryOpen', this) } CategoryBase.prototype.close = function () { @@ -141,6 +143,8 @@ CategoryBase.prototype.close = function () { this.dom.classList.remove('open') this.isOpen = false + + call_hooks('categoryClose', this) } CategoryBase.prototype.toggle = function () {