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

fix the reference to global require() #7

Merged
merged 1 commit into from
Aug 20, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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