Make everything pointer like

This commit is contained in:
Samuel Attard 2017-03-29 15:11:39 +11:00 committed by Kevin Sawicki
parent 2ba937289c
commit 60cc862031
10 changed files with 15 additions and 15 deletions

View file

@ -50,13 +50,13 @@ class TouchBar extends EventEmitter {
})
}
replaceEscapeItem(item) {
setEscapeItem(item) {
if (!item) item = {}
Object.keys(this.windows).forEach((windowID) => {
const window = this.windows[windowID]
window._setEscapeTouchBarItem(item)
})
this._escape = item;
this._escape = item
}
_addToWindow (window) {
@ -90,7 +90,7 @@ class TouchBar extends EventEmitter {
}
window.once('closed', removeListeners)
this.windowListeners[id] = removeListeners
this.windows[id] = window;
this.windows[id] = window
window._setTouchBarItems(this.ordereredItems)