Skip to main content

DoMini()

A constructor method to create a Dominified object from a selector or an Element.

Variations

DoMini(String selector ): array<Object>

Retrieve the "Dominified" elements array

DoMini('p');

DoMini(Element element ): array<Object>

Retrieve the "Dominified" element

DoMini(document.querySelector('body'));

DoMini(Function callback )

Executes the callback method on the window DOMContentLoaded event, passes itself as argument for scoping. If DOMContentLoaded was fired, the callback is executed immediately.

// Fires on DOMContentLoaded or immediately if DOMContentLoaded was fired
DoMini(function($){
// $ is now DoMini
$('p').text('Hi!');
});