From fc1244ccc409c9c03e3c3e1295f90909aefec3f8 Mon Sep 17 00:00:00 2001 From: Norman Xu Date: Mon, 20 Aug 2012 11:44:15 +0800 Subject: [PATCH] fix the reference to global require() --- src/weave.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/weave.js b/src/weave.js index e70dcf2..ad348c7 100644 --- a/src/weave.js +++ b/src/weave.js @@ -5,7 +5,7 @@ */ /*jshint strict:false, smarttabs:true, laxbreak:true, loopfunc:true */ /*global define:true */ -define([ "jquery", "troopjs-utils/getargs" ], function WeaveModule($, getargs) { +define([ "jquery", "troopjs-utils/getargs", "require" ], function WeaveModule($, getargs, parentRequire) { var UNDEFINED; var NULL = null; var ARRAY = Array; @@ -169,7 +169,7 @@ define([ "jquery", "troopjs-utils/getargs" ], function WeaveModule($, getargs) { } // Require module - require([ name ], function required(Widget) { + parentRequire([ name ], function required(Widget) { // Defer start $.Deferred(function deferredStart(dfdStart) { // Constructed and initialized instance