2.0.3 • Published 4 years ago

roo.js v2.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Roo - Version 1.0.2015.0409

( A Javascript Library For Require And Preload - Code By Joenix )

API DESCRIPTION

roo.config

roo.config = {
	base: 'http://localhost/'
};

roo.use

roo.use( ['jQuery.js', 'action.js'], function( $, act ){
	console.log( $, act.plus( 45, 54 ) );
});

or

roo.use( ['jQuery.js', 'action.js'], ['$', act], function(){
	console.log( $, act.plus( 45, 54 ) );
});

in action.js

define(function($){

	console.log($);

	return {
		plus: function( a, b ){
			return a + b;
		}
	}
});

roo.preload

roo.preload( ['picture.jpg', 'stylesheet.css', 'database.json'], function( item, index ){
	console.log( index );
});

Copyright and license

Code and documentation copyright 2015-2018 Joenix.com. Code released under the MIT license.

2.0.3

4 years ago

2.0.2

4 years ago

2.0.0

4 years ago