Fix wrong variable name in requiremock's getDefine

The getDefine method check's for existence of the 'arg' variable,
which was renamed to 'name', causing the typeof arg === "undefined"
to always return true

refs #4308
This commit is contained in:
Jannis Moßhammer 2013-06-14 09:50:06 +02:00
parent d2cd52218a
commit 21e4ec1727
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ module.exports = {
purgeDependencies: purgeDependencies, purgeDependencies: purgeDependencies,
registerDependencies: registerDependencies, registerDependencies: registerDependencies,
getDefine: function(name) { getDefine: function(name) {
if (typeof arg === "undefined") { if (typeof name === "undefined") {
return registeredDependencies.__define__; return registeredDependencies.__define__;
} else { } else {
return registeredDependencies[name]; return registeredDependencies[name];