Browse Source

CategoryBase: call hooks categoryOpen and categoryClose

master
parent
commit
66f2fc86a6
  1. 4
      src/CategoryBase.js

4
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 () {

Loading…
Cancel
Save