Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by cmelbye

Is there any way to have Impact call a function when its loader has finished loading everything and it's ready to go? Its separate loader makes it really difficult to integrate with other libraries like Meteor, node.js, etc, so I'd like to make some sort of callback that can be called when Impact is done loading so I can load everything else without worrying about whether or not a particular Impact module has been loaded already or not.

1 decade ago by Graphikos

You could do it with an inject.

ig.Loader.inject({
    end: function() {
        this.parent();

        // do what you want here
    }
});	

(untested)

Seems like any call from your main init would be guaranteed after the loader also.
Page 1 of 1
« first « previous next › last »