app/assets/javascripts/tasks_scheduler.js in tasks_scheduler-0.0.5 vs app/assets/javascripts/tasks_scheduler.js in tasks_scheduler-0.0.6

- old
+ new

@@ -2,11 +2,11 @@ function TasksScheduler() { } TasksScheduler.Status = function () { -} +}; // Shortcut var _S = TasksScheduler.Status; _S.initialized = false; @@ -65,10 +65,11 @@ _A.DEFAULT_REFRESH_INTERVAL = 60000; _A.DEFAULT_ELEMENT_SELECTOR = '#tasks_scheduler_alert'; _A.url = null; -_A.init = function (url, options = {}) { +_A.init = function (url, options) { + options = typeof options !== 'undefined' ? options : {}; $(document).ready(function () { _A.url = url; _A.options = options; if (!_A.options.refresh_interval) { _A.options.refresh_interval = _A.DEFAULT_REFRESH_INTERVAL;