diff --git a/www/common/common-util.js b/www/common/common-util.js index da83b5960..5f6841983 100644 --- a/www/common/common-util.js +++ b/www/common/common-util.js @@ -34,6 +34,9 @@ }; Util.mkAsync = function (f) { + if (typeof(f) !== 'function') { + throw new Error('EXPECTED_FUNCTION'); + } return function () { var args = Array.prototype.slice.call(arguments); setTimeout(function () {