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

Commit

Permalink
Merge pull request #7 from normanzb/requireReference
Browse files Browse the repository at this point in the history
fix the reference to global require()
  • Loading branch information
mikaelkaron committed Aug 20, 2012
2 parents 33cc1ad + fc1244c commit d23ad78
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 d23ad78

Please # to comment.