roo.js

2.0.3 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i roo.js

Weekly Downloads

1

Version

2.0.3

License

MIT

Unpacked Size

910 kB

Total Files

12

Last publish

Collaborators

  • joenix