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

Thank you, I'll try this and tell if it works

2

if(!node.children.length){
     //delete
}

3

Hello,

I'm trying to implement function to delete nodes, similary to rename, so there is a button, I select a node, click button and that node is deleting. Everything is clear, but, of security reason i want give user option to delete only with node which don't contain any child nodes. Is it possible? I've found a function contain() but i don't know how to use this. By the way, your class is really great, but in documentation, there are missing example how to use each function.

Thank you contribution
Regards
Paul