mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 13:44:41 +08:00
e0976fde2c
Electron 0.35.1 includes the tray fixes we contributed last week but also includes API restructuring and improvements. Most importantly, modules from electron are now imported via `require('electron')`
22 lines
377 B
CoffeeScript
22 lines
377 B
CoffeeScript
_ = require 'underscore'
|
|
Reflux = require 'reflux'
|
|
|
|
PluginsActions = require './plugins-actions'
|
|
|
|
module.exports =
|
|
TabsStore = Reflux.createStore
|
|
|
|
init: ->
|
|
@_tabIndex = 0
|
|
@listenTo(PluginsActions.selectTabIndex, @_onTabIndexChanged)
|
|
|
|
# Getters
|
|
|
|
tabIndex: ->
|
|
@_tabIndex
|
|
|
|
# Action Handlers
|
|
|
|
_onTabIndexChanged: (idx) ->
|
|
@_tabIndex = idx
|
|
@trigger(@)
|