Avoid monkeypatching stream_data object.

(imported from commit 4755cf44736190b566645a83a7fc576d3c8451cb)
This commit is contained in:
Steve Howell 2013-08-21 17:53:37 -04:00
parent 0202ca0261
commit 3e259e028b
1 changed files with 8 additions and 3 deletions

View File

@ -10,11 +10,16 @@
add_dependencies({
_: 'third/underscore/underscore.js',
util: 'js/util.js',
Dict: 'js/dict.js',
stream_data: 'js/stream_data.js'
Dict: 'js/dict.js'
});
var stream_data = global.stream_data;
var stream_data = require('js/stream_data.js');
stream_data = {
canonicalized_name: stream_data.canonicalized_name
};
set_global('stream_data', stream_data);
var Dict = global.Dict;
var unread = require('js/unread.js');
var assert = require('assert');