Problem This method is written for much larger Web application, but I just extracted it and added class and main […]
Tag: cross-browser
User agent classification using switch (true)
Problem I’ve seen usage of switch(true) multiple times and have used it myself today instead of multiple elseif`s. Here is […]
IE compatibility mode detection
Problem This method is written for much larger Web application, but I just extracted it and added class and main […]
Displaying “tooltips” in Highcharts
Problem I have the following piece of code: for (var i = 0, len = legend.allItems.length; i < len; i++) […]
Attaching a click handler in a cross-browser way
Problem I have been attempting to have a method call, with a parameter, inside of a ternary operator to simplify […]