diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-06-27 13:36:18 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-06-27 13:41:01 +0200 |
commit | 586b3a9683421181b7cd66aff2d3fabd0f34531e (patch) | |
tree | 387b4488859d0173f164d5f94d9b5b58ea1f8a05 /apps/files_trashbin/tests/js/filelistSpec.js | |
parent | 4d6019b73fd8b1a1d8e8fecbeb129bea12feb89d (diff) | |
download | nextcloud-server-586b3a9683421181b7cd66aff2d3fabd0f34531e.tar.gz nextcloud-server-586b3a9683421181b7cd66aff2d3fabd0f34531e.zip |
Sync file list with file actions
Whenever file actions are registered later, now the file lists are
automatically notified.
Added FileActions.addUpdateListener() to be able to receive such
notifications.
This removes the need for apps to manually call FileActions.display()
after registering new actions.
This fixes issues with race conditions when file actions are
registered after the file list was already rendered.
Diffstat (limited to 'apps/files_trashbin/tests/js/filelistSpec.js')
-rw-r--r-- | apps/files_trashbin/tests/js/filelistSpec.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_trashbin/tests/js/filelistSpec.js b/apps/files_trashbin/tests/js/filelistSpec.js index 11eeff68df8..fd479234b30 100644 --- a/apps/files_trashbin/tests/js/filelistSpec.js +++ b/apps/files_trashbin/tests/js/filelistSpec.js @@ -96,6 +96,7 @@ describe('OCA.Trashbin.FileList tests', function() { }); afterEach(function() { testFiles = undefined; + fileList.destroy(); fileList = undefined; $('#dir').remove(); |