mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Simplify setConfig in tern-worker by just using the entire new config object.
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user