no crash on delete without callback
This commit is contained in:
parent
d99b58fd3c
commit
b5d8417d8c
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue