I agree with Neilime.  You could create it and attempt to fill it but it not 
get filled and then call empty() on it.

 

Regardless of the situation, it the framework shouldn’t error like that.  If it 
was your own code and you were writing it, would you let it error? Or would you 
check to make sure there are rows there before trying to remove them?

 

From: Rolf Langenhuijzen [mailto:[email protected]] 
Sent: Tuesday, 13 March 2012 9:27 AM
To: [email protected]
Subject: [Moo] Re: "empty" function on new HtmlTable fails

 

I understand you might want some other behavior, for example that nothing 
happens.

But why would you instantiate a new HtmlTable with no data (= creating a new 
empty table) and then call empty() on it? That doesn't make much sense or what 
am I missing?



On Monday, March 12, 2012 7:04:43 PM UTC+1, Neilime wrote:

I try to run empty function on a new HtmlTable but it fails...
Just try : new HtmlTable().empty(); // => "rows[i] is undefined"

I guess that's not a good behavior.

Reply via email to