diff --git a/src/js/yunohost/helpers.js b/src/js/yunohost/helpers.js index a6c5cb8d..0e57cd38 100644 --- a/src/js/yunohost/helpers.js +++ b/src/js/yunohost/helpers.js @@ -179,6 +179,8 @@ // Render view (cross-browser) view: function (view, data, callback, enableSlide) { + c = this; + callback = typeof callback !== 'undefined' ? callback : function() {}; rendered = this.render('views/'+ view +'.ms', data);