ucla-oarc-mobile / mwf

UCLA Mobile Web Framework
http://mwf.ucla.edu
Other
86 stars 25 forks source link

Feature/allow useragent override #131

Closed Trott closed 12 years ago

Trott commented 12 years ago

Allowing the userAgent string to be overridden in the JS library greatly simplifies testing (as you can see from the diff here). The old testing code doesn't even work in Firefox and probably others.

There are probably other use cases where this could come in handy. And it adds very little to the JS payload.

Trott commented 12 years ago

Thanks to YUI compression of non-global variables, this actually shrinks the payload!