mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Adjust test for builds without noConflict.
This commit is contained in:
@@ -351,12 +351,12 @@
|
|||||||
lodashModule = lodash;
|
lodashModule = lodash;
|
||||||
lodashModule.moduleName = 'lodash';
|
lodashModule.moduleName = 'lodash';
|
||||||
|
|
||||||
if (shimmed && shimmed.noConflict) {
|
if (shimmed) {
|
||||||
shimmedModule = shimmed.noConflict();
|
shimmedModule = shimmed.result(shimmed, 'noConflict') || shimmed;
|
||||||
shimmedModule.moduleName = 'shimmed';
|
shimmedModule.moduleName = 'shimmed';
|
||||||
}
|
}
|
||||||
if (underscore && underscore.noConflict) {
|
if (underscore) {
|
||||||
underscoreModule = underscore.noConflict();
|
underscoreModule = underscore.result(underscore, 'noConflict') || underscore;
|
||||||
underscoreModule.moduleName = 'underscore';
|
underscoreModule.moduleName = 'underscore';
|
||||||
}
|
}
|
||||||
if (ui.isModularize) {
|
if (ui.isModularize) {
|
||||||
@@ -378,7 +378,7 @@
|
|||||||
if (window.requirejs) {
|
if (window.requirejs) {
|
||||||
addBizarroMethods();
|
addBizarroMethods();
|
||||||
require(getConfig(), ['lodash'], function(lodash) {
|
require(getConfig(), ['lodash'], function(lodash) {
|
||||||
lodashBizarro = lodash.noConflict();
|
lodashBizarro = lodash.result(lodash, 'noConflict') || lodash;
|
||||||
delete requirejs.s.contexts._;
|
delete requirejs.s.contexts._;
|
||||||
|
|
||||||
removeBizarroMethods();
|
removeBizarroMethods();
|
||||||
|
|||||||
Reference in New Issue
Block a user