diff --git a/WebKit/scripts/controller/Timeline.js b/WebKit/scripts/controller/Timeline.js index a0181cf..94b9e20 100644 --- a/WebKit/scripts/controller/Timeline.js +++ b/WebKit/scripts/controller/Timeline.js @@ -134,7 +134,10 @@ function(Core, Paths, HostApp, URI) { Timeline.prototype.remove = function(id, callback) { var _this = this; - var new_callback = function(data) { callback(data); _this.getNewData(); } + var new_callback = function(data) { + if(callback) callback(data); + _this.getNewData(); + } Core.prototype.remove.call(this, id, new_callback); }