From 54d99e444786d00211f03cb5d1f6dab30a601bdb Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 30 Apr 2014 16:15:06 +0800 Subject: [PATCH] Roo/bootstrap/TableBody.js --- Roo/bootstrap/TableBody.js | 40 +++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/Roo/bootstrap/TableBody.js b/Roo/bootstrap/TableBody.js index 4a40021465..82bfeaa7de 100644 --- a/Roo/bootstrap/TableBody.js +++ b/Roo/bootstrap/TableBody.js @@ -57,27 +57,27 @@ Roo.extend(Roo.bootstrap.TableBody, Roo.bootstrap.Component, { } return cfg; - } + }, + + initEvents : function() + { + + if(!this.store){ + return; + } + + this.store = Roo.factory(this.store, Roo.data); + this.store.on('load', this.onLoad, this); + + this.store.load(); + + }, -// initEvents : function() -// { -// -// if(!this.store){ -// return; -// } -// -// this.store = Roo.factory(this.store, Roo.data); -// this.store.on('load', this.onLoad, this); -// -// this.store.load(); -// -// }, -// -// onLoad: function () -// { -// this.fireEvent('load', this); -// } -// + onLoad: function () + { + this.fireEvent('load', this); + } + }); -- 2.39.2