diff --git a/src/mytinytodo_ajax_storage.js b/src/mytinytodo_ajax_storage.js index 594d78f..8a12a52 100644 --- a/src/mytinytodo_ajax_storage.js +++ b/src/mytinytodo_ajax_storage.js @@ -26,7 +26,7 @@ mytinytodoStorageAjax.prototype = this[action](params, function(json){ if(json.denied) mtt.errorDenied(); - callback.call(mtt, json) + if(callback) callback.call(mtt, json) }); },