This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Example from SwitchyOmega/omega-target-chromium-extension/src/coffee/background.coffee: | |
168 | state = new OmegaTargetCurrent.BrowserStorage(localStorage, 'omega.local.') | |
169 | | |
> 170 | if chrome?.storage?.sync or browser?.storage?.sync | |
| ^^^^^^ | |
171 | syncStorage = new OmegaTargetCurrent.Storage('sync') | |
172 | sync = new OmegaTargetCurrent.OptionsSync(syncStorage) | |
Example from SwitchyOmega/omega-target-chromium-extension/src/coffee/background.coffee: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (isHappy) { cheer(); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (isHappy) { | |
cheer(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if isHappy then cheer() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parse(response) { | |
response.features = new selectables.Collection(response.features); | |
return response; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parse: (response) -> | |
response.features = new selectables.Collection(response.features) | |
return response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_clearWorkspace(itemIdsToKeep) { | |
if (itemIdsToKeep == null) { itemIdsToKeep = []; } | |
this._closeAllFilesExcept(itemFileId => itemIdsToKeep.includes(itemFileId)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_clearWorkspace(itemIdsToKeep) { | |
if (itemIdsToKeep == null) { itemIdsToKeep = []; } | |
this._closeAllFilesExcept(itemFileId => Array.from(itemIdsToKeep).includes(itemFileId)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_clearWorkspace: (itemIdsToKeep = []) -> | |
@_closeAllFilesExcept (itemFileId) -> itemFileId in itemIdsToKeep | |
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable | |
camelcase, | |
consistent-return, | |
default-case, | |
func-names, | |
new-cap, | |
no-case-declarations, | |
no-cond-assign, | |
no-multi-assign, | |
no-return-assign, |