Skip to forum content

Mif

— mystic javascript interface

You are not logged in. Please login or register.


Post new reply

Post new reply

Compose and post your new reply

You may use: BBCode Images Smilies

All fields labelled (Required) must be completed before the form is submitted.

Required information for guests



Captcha image. Turn pictures on to see it.
Required information
Optional post settings

Topic review (newest first)

1

Have you got time to look at the trigger demo ?

next or next next) week.

2

Have you got time to look at the trigger demo ?
In reality I've just add this in initialize method of Mif.Tree.Node object

...
                if (options.triggers) {
                        for (var i=options.triggers.length; --i>=0; ) {
                                var trigger = options.triggers[i];
                                this.addEvent(trigger.event, eval(trigger.method).bind(this));
                        }
                }
...

As I told you the problem is that most of the event never comes on node object.
using events bubbling/capturing model we can do the job.

3

in your inbox wink

4

where is demo?

5

Hello,

I've implemented triggers per node. You can assign a specific handler for each node / event.

My only problem is that each event fired to the tree should also be fire to the proper node.
For example   "drop", "select",  "click"  ...

Moro ! I will be happy to help in include this feature in the trunk but we need to discuss it ...

Cheers