<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Mifjs forum — Mif.Tree, Mif.Menu - delete tree]]></title>
		<link>http://mifjs.net/forum/topic/15/</link>
		<description><![CDATA[The most recent posts in delete tree.]]></description>
		<lastBuildDate>Sat, 10 Jul 2010 16:55:37 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: delete tree]]></title>
			<link>http://mifjs.net/forum/post/812/#p812</link>
			<description><![CDATA[I have modified your code because of an error :
Uncaught TypeError: Cannot call method 'indexOf' of null : line 1 (surely on this.$index == null)

[code]Mif.Tree.implement({
    del: function()
    {
        this.UID = 0;
        this.$ = {};
        this.$index = []; // Array, not null
        this.mouse.node = false;
        this.unselect();
        this.wrapper.innerHTML = '';
    }
});[/code]

Thanks for the help!]]></description>
			<author><![CDATA[dummy@example.com (ordiman85)]]></author>
			<pubDate>Sat, 10 Jul 2010 16:55:37 +0000</pubDate>
			<guid>http://mifjs.net/forum/post/812/#p812</guid>
		</item>
		<item>
			<title><![CDATA[Re: delete tree]]></title>
			<link>http://mifjs.net/forum/post/72/#p72</link>
			<description><![CDATA[Thank you moro, that works great :)

PS: Sorry for the late feedback...]]></description>
			<author><![CDATA[dummy@example.com (Peter)]]></author>
			<pubDate>Thu, 24 Jul 2008 08:22:46 +0000</pubDate>
			<guid>http://mifjs.net/forum/post/72/#p72</guid>
		</item>
		<item>
			<title><![CDATA[Re: delete tree]]></title>
			<link>http://mifjs.net/forum/post/69/#p69</link>
			<description><![CDATA[[code]Mif.Tree.implement({
    
    del: function(){
        this.UID=0;
        this.$={};
        this.$index=null;
        this.mouse.node=false;
        this.unselect();
        this.wrapper.innerHTML='';
    }
    
});[/code]]]></description>
			<author><![CDATA[creavenmoro@gmail.com (moro)]]></author>
			<pubDate>Sun, 06 Jul 2008 05:58:05 +0000</pubDate>
			<guid>http://mifjs.net/forum/post/69/#p69</guid>
		</item>
		<item>
			<title><![CDATA[delete tree]]></title>
			<link>http://mifjs.net/forum/post/60/#p60</link>
			<description><![CDATA[Hi Moro,

How do you delete the content of a tree? (or subtree)

I have a Mif.Tree object which I populated using load(json...). But I would like to clear it to re-populate it with new data. If I call load twice, the new data is appended to the previous one.

Cheers,
Peter]]></description>
			<author><![CDATA[dummy@example.com (Peter)]]></author>
			<pubDate>Tue, 01 Jul 2008 16:06:56 +0000</pubDate>
			<guid>http://mifjs.net/forum/post/60/#p60</guid>
		</item>
	</channel>
</rss>

