SteveSanderson/knockout — pull request #334 by rniemeyer (2012-02-17 06:30:53+00:00)
Title: Avoid adding a leading space in css binding.

Minor fix to address an issue that was mentioned on the forums. The css binding will add a leading space when adding a single class. This causes issues when using a css selector like `[class^="myPrefix"]` to style elements with a class that starts with a certain string. While there are workarounds, seems like there is not a good reason to add a leading space.

Also, refactored minorly to avoid splitting the existing classes into an array twice when removing a class. The array of classes can then also be used to determine whether we need to add a space rather than accessing the DOM element's className property again.