dmolsen / Detector

Detector is a simple, PHP- and JavaScript-based browser- and feature-detection library that can adapt to new devices & browsers on its own without the need to pull from a central database of browser information.
http://detector.dmolsen.com/
MIT License
847 stars 80 forks source link

Adding Classes to the HTML Tag fails #11

Closed jacmaes closed 12 years ago

jacmaes commented 12 years ago

Adding the <?=Detector::createHTMLList($ua)?>" to the HTML tag as instructed in the tutorial (https://github.com/dmolsen/Detector/wiki/Pushing-Detector-Data-to-the-Browser-Tutorial) produces an error in Detector 0.85: "Call to undefined method Detector::createHTMLList()"

You can check it on your own demo page: http://detector.dmolsen.com/demo/classlist/

For that matter, the rest of the demos on that page do not work either.

dmolsen commented 12 years ago

Wow, that's out of date. Thanks for the heads up.

dmolsen commented 12 years ago

Fixed the examples and documentation. Again, thanks.

jacmaes commented 12 years ago

No problem. Do I need to update Detector? The current version still seems to be 0.85...

dmolsen commented 12 years ago

The feature has been supported by a separate file since Detector 0.7.0. You can simply grab that file for now. I was trying to push out v0.9 today but I got held up. I'd hate for you to pull it to only find that I tweaked something else. I should have held off pushing out my changes to the repo. Sorry.