Skip to content

joenix/roo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Javascript Library For Require And Preload

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages