matthewhudson/device.js — pull request #67 by EeKay (2014-07-16 07:05:39+00:00)
Title: _removeClass function now also removes the leading space

_removeClass function now also removes the leading space so portrait/landscape flipping won't make the html class tag longer each time.

When flipping between orientations a lot the html tag's class property was getting longer by each space that was added by the custom _addClass function. This is now compensated.