But I need to be able to explicty close the Info when I want rather then wait for the time specified in InfoConfig.display. The only way I figured I do this is be calling .hide() on the Info-message instance. In order to get a reference to the instance I need to make the call like the first example. Or is there an other way?
A possibility is to change all my other calls (which are like the second approach) to be like the first one. Ok, or bad idea?
"returns" void, so I don't see a way using that and still be able to call hide()