LearnBoost/socket.io-client — pull request #348 by nielslaukens (2011-12-07 10:01:52+00:00)
Title: Added special handling of arrays in util.merge()

Arrays were detected as objects and recursively merged. This changes that behavior to overwrite arrays.

This was needed for example when calling `io.connect('', {'transports': ['xhr-polling']});`. This will merge the supplied `transports` option with the default option (being `[websocket,flashsocket,htmlfile,xhr-polling,jsonp-polling]` in my case), resulting in `[xhr-polling,flashsocket,htmlfile,xhr-polling,jsonp-polling]` instead of the expected `[xhr-polling]`.