- MooTools -
- September 12th, 2008,
- 3 Responses
Browser.Engine.version in MooTools 1.2
- 12 September
There are some interesting things one can find out while reading through the source code of the new MooTools.
Like for example a very handy feature which is not mentioned in the online documentation, is Browser.Engine.version which simply returns the integerified
number of the browsers engine version.
Stumbled upon that little code while researching ways of determining whether a user is using Firefox 2 or 3 (Gecko 1.8 and 1.9 respectfully) – had to get rid of the opacity animation on the page which also contained a Flash movie – the old flickering problem.
Very handy indeed.
3 responses so far. Care to add one yourself?
-
Robin Grass September 14th, 2008 at 11:01
There’s a lot of features that MooTools doesn’t talk about, the Browser object is one of them. I found it after downloading a non-compressed version and checking out the source and boy did it make my life easier. :D
-
cssProdigy December 24th, 2008 at 13:45
Very true, can someone post something on how to use it. I really have no clue and the documentation @ the MooTools site isn’t very clear.
-
rinos October 10th, 2009 at 17:38
pretty straight-forward really, once you find out :-)
eg use this to detect ie6: if(Browser.Engine.trident&&Browser.Engine.version<=6){ … }
hope that gets you going!