Do not expose define references in require polyfill

Summary:
See #406

Made sure the jest tests pass but didn't know a good unit test to add for this.
Closes https://github.com/facebook/react-native/pull/427
Github Author: Jacob Gable <jacob.gable@gmail.com>

Test Plan:
* ./runJestTests
* start app and click around
This commit is contained in:
Jacob Gable 2015-03-31 23:14:46 -07:00
parent 7f6255b16f
commit ab9f78496f
1 changed files with 0 additions and 4 deletions

View File

@ -586,15 +586,11 @@
_register('module', 0); _register('module', 0);
_register('exports', 0); _register('exports', 0);
_register('define', define);
_register('global', global); _register('global', global);
_register('require', require); _register('require', require);
_register('requireDynamic', require); _register('requireDynamic', require);
_register('requireLazy', requireLazy); _register('requireLazy', requireLazy);
define.amd = {};
global.define = define;
global.require = require; global.require = require;
global.requireDynamic = require; global.requireDynamic = require;
global.requireLazy = requireLazy; global.requireLazy = requireLazy;