Skip to content

DOM Events #14

@jcf120

Description

@jcf120

I've got some code that is dependent on an element having already been rendered in the DOM, but don't necessarily know when it will be be inserted. I thought it might be handy to have DOM manipulation events. E.g.:

var elem = Doom.create({
    onInsert: function() {
        console.log(elem.offsetWidth);
    }
});

What d'ya reckon?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions