yiibu/profile — pull request #3 by colonel-sponsz (2012-01-08 22:15:33+00:00)
Title: Debug, profile-src.js linting and DesktopGuess plugin

There are three things here in four commits. There's nothing major here but I did this as a way to try and understand this tool and hope they are of use to you.

1. **Debug setting** Added a debug setting to the ini file. This does two things when set to `true`:
1. The `profile.js.php` preprocessor doesn't use the cached version of the file and doesn't minify the output.
2. The `Profile` class calls the `update()` method on every request rather than loading data from the cookie. This is useful for plugin development.
2. **profile-src.js linting** The profile-src.js now passes JSLint. No change in functionality and not a big deal but it makes it easier for other people to work on.
3. **DesktopGuess plugin** As the Desktop check was being done with DeviceAtlas which requires a licence there was no data for this item. This plugin attempts to fill that void with a crude test on the user agent so this package can be shipped with all data points filled.

*Note: I've followed your coding style where possible but my editor has been cleaning up trailing white space which means the diffs show some lines that don't look like they've actually changed.*