Permalink
Browse files

Fixing module dependent updating bug, no detectable performance hit.

  • Loading branch information...
1 parent f400c09 commit accf18a554cd342b9f5f0d470fe4ad0911617dff @jcoglan jcoglan committed Aug 8, 2008
Showing with 5 additions and 0 deletions.
  1. +5 −0 source/class.js
View
@@ -216,6 +216,11 @@ JS.extend(JS.Module.prototype, {
resolve: function(target) {
var target = target || this, resolved = target.__res__, i, n, key, made;
+ if (target == this) {
+ i = this.__dep__.length;
+ while (i--) this.__dep__[i].resolve();
+ }
+
if (!resolved) return;
for (i = 0, n = this.__inc__.length; i < n; i++)

0 comments on commit accf18a

Please sign in to comment.