Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define('lib/js/js-animation-plugin',[], function () {
- console.debug("loaded js animation plugin from lib.");
- return {
- data : "this is some important data or function used for animation",
- action : function(target){
- target.after("<p>JS animations</p>");
- }
- }
- });
- define('js/js-animation',['../lib/js/js-animation-plugin'], function (plugin) {
- console.log("Loaded js animation code.",plugin);
- return {
- type : function () {
- return "js";
- },
- run : function (args) {
- console.info("Running js animator");
- plugin.action(args.target);
- }
- };
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement