Simplify setConfig in tern-worker by just using the entire new config object.

This commit is contained in:
Kevin Dangoor committed 2013-11-11 15:57:40 -05:00
1 parent 3f2ad065a0
commit 4c588d32b9
1 file changed
+2 -6
@@ -574,15 +574,11 @@ var config = {};
/**
* Updates the configuration, typically for debugging purposes.
* Keys set in the config object passed in are merged into the
* configuration.
*
* @param {Object} configUpdate updated config keys
* @param {Object} configUpdate new configuration
*/
function setConfig(configUpdate) {
Object.keys(configUpdate).forEach(function (key) {
config[key] = configUpdate[key];
});
config = configUpdate;
}
self.addEventListener("message", function (e) {