Skip to content
This repository has been archived by the owner on Feb 26, 2019. It is now read-only.

Commit

Permalink
fix the reference to global require()
Browse files Browse the repository at this point in the history
  • Loading branch information
normanzb committed Aug 20, 2012
1 parent 33cc1ad commit fc1244c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/weave.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fc1244c

Please # to comment.