Closed kankaristo closed 8 years ago
I clearly don't understand why this occurs, probably a race condition, but I don't see where. Here the forEach throws:
unless @disposed
@disposed = true
@disposables.forEach (disposable) ->
disposable.dispose()
@disposables = null
and the @disposables = null
is the only nulling. So It "should" be impossible to throw ^^
I added an additional check if @disposables
is null, now it works.
Yep, seems to be fixed, thanks! :+1:
Another more minor thing: the folder name doesn't show up right away after creating a split. Moving or closing a tab seems to update it, but it doesn't show up right away.
It's a really minor bug though, and probably won't bother anyone too much.
I will look into it. splitting in from the tree view works but from the tabs bar not.. as always strange ;)
works for me in 0.1.10 :smile:
Working nicely, thanks again! :smile:
I recently updated foldername-tabs to version 0.1.8 and started getting an error when I close the last tab in a pane.
Atom's error dialog points to https://github.com/atom/tabs/issues/253, but the error doesn't happen in safe mode, or if I disable the foldername-tabs package. It also started happening very close to version 0.1.8 being released, so it's probably caused by some change in that version.
Steps to reproduce:
Atom Version: 1.5.0-beta1 System: Ubuntu 15.10 Thrown From: tabs package, v0.88.0
Stack Trace
Uncaught TypeError: Cannot read property 'forEach' of undefined