Refactored wiki event mechanism to support multiple event types

This commit is contained in:
Jeremy Ruston
2013-03-16 10:42:46 +00:00
parent 623a3ec8f8
commit c3b57507b0
5 changed files with 33 additions and 26 deletions

View File

@@ -408,7 +408,7 @@ $tw.plugins.dropbox.saveTiddlerIndex = function(path,callback) {
Setup synchronisation back to Dropbox
*/
$tw.plugins.dropbox.setupSyncer = function(wiki) {
wiki.addEventListener("",function(changes) {
wiki.addEventListener("change",function(changes) {
$tw.plugins.dropbox.syncChanges(changes,wiki);
});
};