// Resolves dynamic loader function and replaces it with it's own results
if ( typeof registry[module].dependencies === 'function' ) {
registry[module].dependencies = registry[module].dependencies();
- // Gaurantees the module's dependencies are always in an array
+ // Ensures the module's dependencies are always in an array
if ( typeof registry[module].dependencies !== 'object' ) {
registry[module].dependencies = [registry[module].dependencies];
}
} )
.appendTo( $( 'body' ) );
}
- if ( $log.length ) {
- $log.append(
- $( '<div>' + string + '</div>' )
- .css( {
- 'border-bottom': 'solid 1px #DDDDDD',
- 'font-size': 'small',
- 'font-family': 'monospace',
- 'padding': '0.125em 0.25em'
- } )
- );
- }
+ $log.append(
+ $( '<div></div>' )
+ .text( string )
+ .css( {
+ 'border-bottom': 'solid 1px #DDDDDD',
+ 'font-size': 'small',
+ 'font-family': 'monospace',
+ 'padding': '0.125em 0.25em'
+ } )
+ );
}
}
} );