<?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 - events fire too early (oncheck etc.)]]></title>
	<link rel="self" href="http://www.mifjs.net/forum/feed/atom/topic/178/"/>
	<updated>2009-11-20T14:34:26Z</updated>
	<generator>PunBB</generator>
	<id>http://mifjs.net/forum/topic/178/</id>
		<entry>
			<title type="html"><![CDATA[Re: events fire too early (oncheck etc.)]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/658/#p658"/>
			<content type="html"><![CDATA[fixed [url=http://code.google.com/p/miftree/source/detail?r=107]rev107[/url]]]></content>
			<author>
				<name><![CDATA[moro]]></name>
				<email><![CDATA[creavenmoro@gmail.com]]></email>
				<uri>http://mifjs.net/forum/user/2/</uri>
			</author>
			<updated>2009-11-20T14:34:26Z</updated>
			<id>http://mifjs.net/forum/post/658/#p658</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[events fire too early (oncheck etc.)]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/657/#p657"/>
			<content type="html"><![CDATA[Maybe this is not a bug, but I think it is one anyway.
onCheck (and related onUncheck, switch) events fire at the start of the method 'switch'.
If you use these events to do some JS (e.g. run getSelected and update a value somewhere) then you don't get the latest collection of checked checkboxes.

Why can't they be at the end of the method? I have done so now in my mif.tree-trunk.js for both the switch and check/uncheck events.

Any thoughts?]]></content>
			<author>
				<name><![CDATA[Rolf]]></name>
				<uri>http://mifjs.net/forum/user/96/</uri>
			</author>
			<updated>2009-11-20T10:28:34Z</updated>
			<id>http://mifjs.net/forum/post/657/#p657</id>
		</entry>
</feed>

