apache/cordova-weinre — pull request #2 by willchenhb (2013-03-18 09:01:52+00:00)
Title: About issue of no auto connect if client refresh

If target refresh, then targetRegistered() of WeinreClientEventsImpl.coffee will do an auto connection for client and target.

If client refresh, then cb_getTargets() in RemotePanel.coffee will try to do auto connection. But in getNewestConnectorChannel() of ConnectorList.coffee which called from the previous function will always return null.
That is because the variable connectorChannel will be like 't-1', 't-2', and will always return false in compare to newest(which have initial value 0).

I fix this issue by filter the Non-Number characters, and do comparison after parse to integer.

Thanks,
haibiao