getRandomId

Returns: String

Generates 12-digits alphanumeric ID string.

var id = this.app.utils.getRandomId();

wrap

Arguments

Returns: String

Creates a div layer with specified HTML string.

html = this.app.utils.wrap(html, function($w) {
    var $elms = $wrapper.find('span');
    $elms.addClass('someclass');
});