Closed moander closed 3 years ago
<script src="bower_components/q/q.js"></script> <script src="bower_components/o.js/o.js"></script> <script> o().config({ endpoint: 'global' }); var x = o.createClient(); x().config({ endpoint: 'localX' }); var y = o.createClient({ endpoint: 'localY' }); console.log(o().oConfig.endpoint); console.log(x().oConfig.endpoint); console.log(y().oConfig.endpoint); </script>
Output:
global localX localY
Line 44 and 1571-1580 is my additions. The rest is just indentation ;)
@moander Good idea! Can you please fix the test? Afterwards I can merge you pull-request.
Output: