Inject pad dependencies into most pad submodules.

This commit is contained in:
Chad Weider 2012-01-26 21:02:58 -08:00
parent 56c07e484a
commit 514698162f
8 changed files with 22 additions and 26 deletions

View file

@ -118,9 +118,9 @@ var paddocbar = (function()
var self = {
title: null,
password: null,
init: function(opts)
init: function(opts, _pad)
{
pad = require('/pad2').pad; // Sidestep circular dependency (should be injected).
pad = _pad;
panels = {
impexp: {