Topic: Quick fix for Mootools 1.2.3 upgrade

Just upgraded to latest mootools and keynav & drag'n'drop stopped working!!

So have edited line 64 of the Mif.Tree section:

Replace:
  if (MooTools.version=='1.2.2' && this.options.initialize) this.options.initialize.call(this);
With
  if (MooTools.version>='1.2.2' && this.options.initialize) this.options.initialize.call(this);
OR
  if ((MooTools.version=='1.2.2' || MooTools.version=='1.2.3') && this.options.initialize) this.options.initialize.call(this);

The 1st replacement appears to work ok so I guess it's good to use.

Hope this helps someone.

Thumbs up Thumbs down

Re: Quick fix for Mootools 1.2.3 upgrade

fixed rev101

Re: Quick fix for Mootools 1.2.3 upgrade

I am getting nothing (no display, no errors) when I use both 1.2.3core with 1.2.3.1more of mootools... (I'm in dev, so it's a complete package from mootools)

I downloaded the tree.v1.1 from the website...
Should I grab the rev 101 file instead, in order to make it work with the latest mootools?

Last edited by Stalfos (2009-08-27 18:37:22)

Thumbs up Thumbs down

Re: Quick fix for Mootools 1.2.3 upgrade

Stalfos wrote:

I am getting nothing (no display, no errors) when I use both 1.2.3core with 1.2.3.1more of mootools... (I'm in dev, so it's a complete package from mootools)

I downloaded the tree.v1.1 from the website...
Should I grab the rev 101 file instead, in order to make it work with the latest mootools?

Same problem here... What files do I need to download to make this work with 1.2.3core and 1.2.3.1more of mootools?

Edit:

I grabbed a copy from his latest source revision:

svn checkout http://miftree.googlecode.com/svn/trunk/ miftree-read-only

And built a new mif.tree.js file from all his source .js files (by just manually concatenating all the .js files in /Source/Core/ and /Source/More/. I'm sure he has an automated build for this, but I couldn't quite figure that out.).

I ran this against mootools 1.2.3 core and 1.2.3.1 more, and it worked. I guess he has fixed it, but maybe doesn't consider it stable enough yet to post as a release version on the site?

Last edited by kevin (2009-09-11 20:48:31)

Thumbs up Thumbs down

Re: Quick fix for Mootools 1.2.3 upgrade

you can use trunk download builder: http://mifjs.net/trunk/tree/Download/Builder/

Re: Quick fix for Mootools 1.2.3 upgrade

moro,

what do I need to update in MifMenu source to make it work with Mootools 1.2.3?

There are problems with firing custom events in Mif.Menu.Item.check() method:

Mif.Menu.Item.js

    check: function(state){
        if(this.type=='checkbox'){
            ...
            this.list.fireEvent('check', [this, this.checked]);
        }
        if(this.type=='radio'){
            ...
            this.list.groups[this.group].each(function(item){
                if(item==this && this.checked){
                    ...
                    item.list.fireEvent('radioCheck', [this, true]);
                    return;
                }else{
                    ...
                    item.list.fireEvent('radioCheck', [this, false]);
                }
            }, this);
        }
        return this;
    },

Both this.list and item.list do not have fireEvent() method defined.

Your help will be greatly appreciated.

Thanks,
Temuri

Last edited by temuri (2009-10-03 17:29:21)

Thumbs up Thumbs down

Re: Quick fix for Mootools 1.2.3 upgrade

I have tried all the option above, but I can't get it to work with Mootools-v1.2.3-core and -more.
It works fine with Mootools v1.2.
Does somebody have a working example (would save me a lot of time).

Thumbs up Thumbs down

Re: Quick fix for Mootools 1.2.3 upgrade

Muriel wrote:

I have tried all the option above, but I can't get it to work with Mootools-v1.2.3-core and -more.
It works fine with Mootools v1.2.
Does somebody have a working example (would save me a lot of time).

http://mifjs.net/trunk/tree/Demos/index.html

Re: Quick fix for Mootools 1.2.3 upgrade

moro,

what about updating this to Mootools 1.2.3?

http://mifjs.net/trunk/menu/Demos/index.html

thanks

Thumbs up Thumbs down

Re: Quick fix for Mootools 1.2.3 upgrade

temuri wrote:

moro,

what do I need to update in MifMenu source to make it work with Mootools 1.2.3?

There are problems with firing custom events in Mif.Menu.Item.check() method:
...
Both this.list and item.list do not have fireEvent() method defined.
...

fixed rev36


menu updated to lastest mootools version