diff --git a/www/extras/wobject/Survey/editsurvey/object.js b/www/extras/wobject/Survey/editsurvey/object.js index 42e1b0fa9..7c963ecc9 100644 --- a/www/extras/wobject/Survey/editsurvey/object.js +++ b/www/extras/wobject/Survey/editsurvey/object.js @@ -149,8 +149,8 @@ Survey.ObjectTemplate = (function(){ dialog.callback = Survey.Comm.callback; - dialog.hideEvent.subscribe(function(){Survey.ObjectTemplate.hideEditor();}); - dialog.dragEvent.subscribe(function(){Survey.ObjectTemplate.showEditor();}); + dialog.hideEvent.subscribe(Survey.ObjectTemplate.hideEditor); + dialog.dragEvent.subscribe(Survey.ObjectTemplate.showEditor); dialog.render();