allow for timeslider custom messages

This commit is contained in:
John McLear 2014-12-10 01:23:24 +00:00
parent 197a41627d
commit a2dbf8761f
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ var Changeset = require('./Changeset');
var linestylefilter = require('./linestylefilter').linestylefilter; var linestylefilter = require('./linestylefilter').linestylefilter;
var colorutils = require('./colorutils').colorutils; var colorutils = require('./colorutils').colorutils;
var _ = require('./underscore'); var _ = require('./underscore');
var hooks = require('./pluginfw/hooks');
// These parameters were global, now they are injected. A reference to the // These parameters were global, now they are injected. A reference to the
// Timeslider controller would probably be more appropriate. // Timeslider controller would probably be more appropriate.
@ -534,6 +535,7 @@ function loadBroadcastJS(socket, sendSocketMsg, fireWhenAllScriptsAreLoaded, Bro
var savedRev = obj.savedRev; var savedRev = obj.savedRev;
BroadcastSlider.addSavedRevision(savedRev.revNum, savedRev); BroadcastSlider.addSavedRevision(savedRev.revNum, savedRev);
} }
hooks.callAll('handleClientTimesliderMessage_' + obj.type, {payload: obj});
} }
else if(obj.type == "CHANGESET_REQ") else if(obj.type == "CHANGESET_REQ")
{ {