From 76d67d4f2812ce0bba8cd81aca4015444f0179a4 Mon Sep 17 00:00:00 2001 From: Max Pozdeev Date: Sun, 13 Jun 2010 18:21:37 +0400 Subject: [PATCH] - fixed error while manual sorting --- src/mytinytodo_ajax_storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }); },