<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Mifjs forum — Mif.Tree, Mif.Menu - Error in Method getChecked()  (Tree Checkbox)]]></title>
	<link rel="self" href="http://www.mifjs.net/forum/feed/atom/topic/75/"/>
	<updated>2009-01-04T08:44:48Z</updated>
	<generator>PunBB</generator>
	<id>http://mifjs.net/forum/topic/75/</id>
		<entry>
			<title type="html"><![CDATA[Re: Error in Method getChecked()  (Tree Checkbox)]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/269/#p269"/>
			<content type="html"><![CDATA[fixed rev 52 [url=http://code.google.com/p/miftree/source/detail?r=52]code.google.com[/url]

 [url=http://mifjs.net/trunk/tree/]http://mifjs.net/trunk/tree/[/url]]]></content>
			<author>
				<name><![CDATA[moro]]></name>
				<email><![CDATA[creavenmoro@gmail.com]]></email>
				<uri>http://mifjs.net/forum/user/2/</uri>
			</author>
			<updated>2009-01-04T08:44:48Z</updated>
			<id>http://mifjs.net/forum/post/269/#p269</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Error in Method getChecked()  (Tree Checkbox)]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/268/#p268"/>
			<content type="html"><![CDATA[I think there is an error in the following method:

	getChecked: function(){
		var checked=[];
		this.root.recursive(function(){
			if(this.hasCheckbox && [b]this.state.checked) checked.push(checked)[/b];
		});
		return checked;
	}

The next would be better: 

      getChecked: function(){
		var checked=[];
		this.root.recursive(function(){
			if(this.hasCheckbox && [b]this.state.checked == 'checked') checked.push(this)[/b];
		});
		return checked;
	}

It would be better if somebody check it again  :)]]></content>
			<author>
				<name><![CDATA[junzhang]]></name>
				<uri>http://mifjs.net/forum/user/43/</uri>
			</author>
			<updated>2009-01-03T22:55:57Z</updated>
			<id>http://mifjs.net/forum/post/268/#p268</id>
		</entry>
</feed>

