From a14ede75875be1a1ab49b2d5e4f58e81baaf5ff7 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 20 Apr 2013 09:51:52 +0000 Subject: [PATCH] added @memberOf to get outline --- etemplate/js/et2_widget_dialog.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/etemplate/js/et2_widget_dialog.js b/etemplate/js/et2_widget_dialog.js index 1e96c0e4bd..b42632670a 100644 --- a/etemplate/js/et2_widget_dialog.js +++ b/etemplate/js/et2_widget_dialog.js @@ -199,6 +199,11 @@ var et2_dialog = et2_widget.extend({ // Define this as null to avoid breaking any hierarchies (eg: destroy()) _parent: null, + /** + * Constructor + * + * @memberOf et2_dialog + */ init: function() { // Call the inherited constructor this._super.apply(this, arguments); @@ -212,7 +217,7 @@ var et2_dialog = et2_widget.extend({ this._buttons[i][j].click = (function(id) { return function(event) { self.click(event.target,id); - } + }; })(this._buttons[i][j].button_id); } } @@ -239,7 +244,7 @@ var et2_dialog = et2_widget.extend({ this.div = null; // Call the inherited constructor - this._super.apply(this, arguments) + this._super.apply(this, arguments); }, /** @@ -393,7 +398,7 @@ var et2_dialog = et2_widget.extend({ // Focus default button so enter works $j(this).parents('.ui-dialog-buttonpane button[default]').focus(); }, - close: jQuery.proxy(function() {this.destroy()},this) + close: jQuery.proxy(function() {this.destroy();},this) }); } });