[jQuery] $.browser suggestion
John, I'd like to suggest a change to the $.browser variable. Instead of
setting it to a string, what about setting it to an object containing a
property that identifies the browser. For example, instead of setting it to
"msie" the value would be { msie:true }.
The advantage of doing this is that it allows for a future enhancement of
adding the version number, so you the value might be { msie:5.5 }. I use a
similar setup in my own code and it is very handy.
Making $.browser an object now would allow this later addition without
breaking existing code.
What do you think?
-Mike
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/