jrburke/requirejs — pull request #532 by guybedford (2012-11-17 11:59:49+00:00)
Title: Ensure empty config is a live reference

This is a first commit towards achieving https://github.com/jrburke/require-cs/pull/35

The 'createXhr' call for the text plugin works perfectly for these needs.

The only issue is that if no config is specified, the text plugin gets an empty object for config which isn't referenced on the original config object. This means that a dynamic config change on that config object won't be seen by the text plugin.

This pull request ensures that when a module asks for config and there is none, the config is set to an empty object which is properly referenced on the config object to ensure future changes reference through correctly.