Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing module dependent updating bug, no detectable performance hit.

  • Loading branch information...
commit accf18a554cd342b9f5f0d470fe4ad0911617dff 1 parent f400c09
@jcoglan jcoglan authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 source/class.js
View
5 source/class.js
@@ -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++)
Please sign in to comment.
Something went wrong with that request. Please try again.