Commit 44549a40 authored by yann300's avatar yann300

CodeListView trigger display event

parent 5257336a
...@@ -3,8 +3,10 @@ var style = require('./styles/basicStyles') ...@@ -3,8 +3,10 @@ var style = require('./styles/basicStyles')
var yo = require('yo-yo') var yo = require('yo-yo')
var ui = require('../helpers/ui') var ui = require('../helpers/ui')
var DropdownPanel = require('./DropdownPanel') var DropdownPanel = require('./DropdownPanel')
var EventManager = require('../lib/eventManager')
function CodeListView (_parent, _codeManager) { function CodeListView (_parent, _codeManager) {
this.event = new EventManager()
this.parent = _parent this.parent = _parent
this.codeManager = _codeManager this.codeManager = _codeManager
this.code this.code
...@@ -12,6 +14,12 @@ function CodeListView (_parent, _codeManager) { ...@@ -12,6 +14,12 @@ function CodeListView (_parent, _codeManager) {
this.codeView this.codeView
this.itemSelected this.itemSelected
this.basicPanel = new DropdownPanel('Instructions', {json: false}) this.basicPanel = new DropdownPanel('Instructions', {json: false})
this.basicPanel.event.register('hide', () => {
this.event.trigger('hide', [])
})
this.basicPanel.event.register('show', () => {
this.event.trigger('show', [])
})
this.init() this.init()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment