Commits

Gianni Chiappetta committed 2d55bdf

added: More libraries from the Google CDN.

  • Participants
  • Parent commits 43c3cee

Comments (0)

Files changed (1)

File src/repl/commandtransformer.js

 
   this.dfcommand_man = this.dfcommand_help; // man is alias for help
 
+  // Forseeable issue: when library major version number rolls over these URLs 
+  // will need to be updated.
   this.dfcommand_lib = function(view, data, service)
   {
     var cmd = data.get_typed_history().reverse()[0].match( /\(\s*(\w+)\s*\)/ )
       , library = cmd && cmd[1]
       , libraries =
-          { jquery: "http://code.jquery.com/jquery.min.js"
-          , prototype: "https://ajax.googleapis.com/ajax/libs/prototype/1/prototype.js"
+          { dojo: 'https://ajax.googleapis.com/ajax/libs/dojo/1/dojo/dojo.xd.js'
+          , ext: 'https://ajax.googleapis.com/ajax/libs/ext-core/3/ext-core.js'
+          , jquery: 'https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'
+          , jqueryui: 'https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js'
+          , mootools: 'https://ajax.googleapis.com/ajax/libs/mootools/1/mootools-yui-compressed.js'
+          , prototype: 'https://ajax.googleapis.com/ajax/libs/prototype/1/prototype.js'
+          , scripty: 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1/scriptaculous.js'
+          , yui: 'https://ajax.googleapis.com/ajax/libs/yui/3/build/yui/yui-min.js'
           }
 
     if ( library && library in libraries )