Advertisement
Guest User

Untitled

a guest
Aug 17th, 2012
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. define('lib/js/js-animation-plugin.js',[], function () {
  3.     console.debug("loaded js animation plugin from lib.");
  4.     return {
  5.         data : "this is some important data or function used for animation",
  6.         action : function(target){
  7.             target.after("<p>JS animations</p>");
  8.         }
  9.     }
  10. });
  11. define('js/js-animation',['lib/js/js-animation-plugin.js'], function (plugin) {
  12.         console.log("Loaded js animation code.",plugin);
  13.         return {
  14.             type : function () {
  15.                 return "js";
  16.             },
  17.             run : function (args) {
  18.                 console.info("Running js animator");
  19.                 plugin.action(args.target);
  20.             }
  21.         };
  22. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement