Make implicit loading of modules unnecessary.

This is one step on the way to simplifying `Minify` and allowing all of the modules within pad.js to be loaded independently in development mode (which is useful for debugging).
This commit is contained in:
Chad Weider 2012-01-28 15:26:39 -08:00
parent 6a4c025e08
commit a408557a0e
3 changed files with 15 additions and 5 deletions

View file

@ -24,6 +24,15 @@
var socket;
// These jQuery things should create local references, but for now `require()`
// assigns to the global `$` and augments it with plugins.
require('/jquery');
require('/jquery-ui');
require('/farbtastic');
require('/excanvas');
require('/json2');
require('/undo-xpopup');
var chat = require('/chat').chat;
var getCollabClient = require('/collab_client').getCollabClient;
var padconnectionstatus = require('/pad_connectionstatus').padconnectionstatus;

View file

@ -20,6 +20,12 @@
* limitations under the License.
*/
// These jQuery things should create local references, but for now `require()`
// assigns to the global `$` and augments it with plugins.
require('/jquery');
require('/json2');
require('/undo-xpopup');
function createCookie(name,value,days)
{
if (days) {