mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-17 04:51:33 +00:00
Merge pull request #3809 from overleaf/sk-history-exception-fix
Remove references to `this` in history toolbar GitOrigin-RevId: 7e3e970317d94ab694ccd2ccd5bb89fee9cb72b6
This commit is contained in:
parent
ae0805e684
commit
036018d65c
1 changed files with 4 additions and 4 deletions
|
@ -109,13 +109,13 @@ export default App.controller(
|
|||
.then(function(entity) {
|
||||
if (type === 'doc') {
|
||||
ide.editorManager.openDoc(entity)
|
||||
this.ide.$timeout(() => {
|
||||
this.$scope.$broadcast('history:toggle')
|
||||
ide.$timeout(() => {
|
||||
$scope.$broadcast('history:toggle')
|
||||
}, 0)
|
||||
} else if (type === 'file') {
|
||||
ide.binaryFilesManager.openFile(entity)
|
||||
this.ide.$timeout(() => {
|
||||
this.$scope.$broadcast('history:toggle')
|
||||
ide.$timeout(() => {
|
||||
$scope.$broadcast('history:toggle')
|
||||
}, 0)
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue