Typically for JavaScript, initialising an object as an array doesn’t
break anything because an array is an object. Anyhow, it should be an
object in this case.
This commit is contained in:
Jermolene 2015-05-02 17:22:23 +01:00
parent 7667225840
commit 7866f9b2de
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ exports.enqueueTiddlerEvent = function(title,isDeleted) {
this.changeCount[title] = 1;
}
// Trigger events
this.eventListeners = this.eventListeners || [];
this.eventListeners = this.eventListeners || {};
if(!this.eventsTriggered) {
var self = this;
$tw.utils.nextTick(function() {