Permalink
Browse files

Release memory.

  • Loading branch information...
1 parent 69fb76e commit 55e872472e4de3ff91ea7de03bb073bc7056101f @tobie tobie committed Sep 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 assets/modulr.sync.js
View
2 assets/modulr.sync.js
@@ -2,7 +2,6 @@
(function(exports) {
var _factories = {},
_modules = {},
- _handlers = [],
_dirStack = [''],
PREFIX = '__module__', // Poor man's hasOwnProperty
RELATIVE_IDENTIFIER_PATTERN = /^\.\.?\//;
@@ -22,6 +21,7 @@
_dirStack.push(id.substring(0, id.lastIndexOf('/') + 1))
try {
var fn = _factories[key];
+ delete _factories[key];
if (!fn) { throw 'Can\'t find module "' + identifier + '".'; }
// lazy eval

0 comments on commit 55e8724

Please sign in to comment.