From 5e12553f7149d08500605ad20606bd790f5106e8 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 24 Oct 2011 22:06:21 +0000 Subject: [PATCH] Vaccuously implement Detachable interface for box/vbox - solves some missing node warnings. --- etemplate/js/et2_widget_box.js | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_widget_box.js b/etemplate/js/et2_widget_box.js index 095208d34e..0145f76144 100644 --- a/etemplate/js/et2_widget_box.js +++ b/etemplate/js/et2_widget_box.js @@ -20,7 +20,7 @@ /** * Class which implements the hbox and vbox tag */ -var et2_box = et2_baseWidget.extend({ +var et2_box = et2_baseWidget.extend([et2_IDetachedDOM], { createNamespace: true, @@ -32,7 +32,25 @@ var et2_box = et2_baseWidget.extend({ .addClass("et2_box_widget"); this.setDOMNode(this.div[0]); - } + }, + + /** + * Code for implementing et2_IDetachedDOM + * This doesn't need to be implemented. + * Individual widgets are detected and handled by the grid, but the interface is needed for this to happen + */ + getDetachedAttributes: function(_attrs) + { + }, + + getDetachedNodes: function() + { + return []; + }, + + setDetachedAttributes: function(_nodes, _values) + { + } });