diff --git a/internal_packages/account-sidebar/lib/sidebar-section.coffee b/internal_packages/account-sidebar/lib/sidebar-section.coffee index de757fee3..4905d1f64 100644 --- a/internal_packages/account-sidebar/lib/sidebar-section.coffee +++ b/internal_packages/account-sidebar/lib/sidebar-section.coffee @@ -20,7 +20,7 @@ toggleSectionCollapsed = (section) -> class SidebarSection - @empty: (title)-> + @empty: (title) -> return { title, items: [] diff --git a/internal_packages/account-sidebar/lib/sidebar-store.coffee b/internal_packages/account-sidebar/lib/sidebar-store.coffee index e5052c553..68d783ff3 100644 --- a/internal_packages/account-sidebar/lib/sidebar-store.coffee +++ b/internal_packages/account-sidebar/lib/sidebar-store.coffee @@ -60,7 +60,7 @@ class SidebarStore extends NylasStore @_focusedAccounts = accounts @_updateSections() - _updateSections: () => + _updateSections: => accounts = @_focusedAccounts multiAccount = accounts.length > 1 diff --git a/internal_packages/thread-list/lib/draft-list.cjsx b/internal_packages/thread-list/lib/draft-list.cjsx index 81d80b4a4..0ab69d84c 100644 --- a/internal_packages/thread-list/lib/draft-list.cjsx +++ b/internal_packages/thread-list/lib/draft-list.cjsx @@ -18,9 +18,7 @@ class DraftList extends React.Component render: => - dataSource: DraftListStore.dataSource() - }> + getStateFromStores={ -> dataSource: DraftListStore.dataSource() }> - dataSource: DraftListStore.dataSource() - }> + getStateFromStores={ -> dataSource: DraftListStore.dataSource() }> diff --git a/internal_packages/thread-list/lib/thread-list.cjsx b/internal_packages/thread-list/lib/thread-list.cjsx index 6dbb7bffb..9f72e42d5 100644 --- a/internal_packages/thread-list/lib/thread-list.cjsx +++ b/internal_packages/thread-list/lib/thread-list.cjsx @@ -77,9 +77,7 @@ class ThreadList extends React.Component - dataSource: ThreadListStore.dataSource() - }> + getStateFromStores={ -> dataSource: ThreadListStore.dataSource() }> - dataSource: ThreadListStore.dataSource() - }> + getStateFromStores={ -> dataSource: ThreadListStore.dataSource() }> diff --git a/spec/stores/file-upload-store-spec.coffee b/spec/stores/file-upload-store-spec.coffee index 523891775..09fdb8437 100644 --- a/spec/stores/file-upload-store-spec.coffee +++ b/spec/stores/file-upload-store-spec.coffee @@ -137,7 +137,7 @@ describe 'FileUploadStore', -> upload = new Upload(msgId, fpath, {size: 1234, isDirectory: -> false}) waitsForPromise -> FileUploadStore._verifyUpload(upload) - .then (up)-> expect(up.id).toBe upload.id + .then (up) -> expect(up.id).toBe upload.id describe '_copyUpload', -> @@ -178,5 +178,3 @@ describe 'FileUploadStore', -> .then => throw new Error('It should fail.') .catch (msg) => expect(msg).not.toBeUndefined() - - diff --git a/src/flux/stores/account-store.coffee b/src/flux/stores/account-store.coffee index 8b85818f2..f75dd2e1e 100644 --- a/src/flux/stores/account-store.coffee +++ b/src/flux/stores/account-store.coffee @@ -119,7 +119,7 @@ class AccountStore accountForId: (id) => _.findWhere(@_accounts, {id}) - aliases: () => + aliases: => aliases = [] for acc in @_accounts aliases.push(acc.me())