• David Schnur's avatar
    Ensure that pie's legendWidth remains numeric. · 5951dcb0
    David Schnur authored
    Substitute zero when .width() returns undefined, since legendWidth is
    used in numeric calculations that break when it is undefined.  This
    became a problem with the release of jQuery 1.8.0, which returns
    undefined instead of null when an element doesn't exist.  This was fixed
    in 1.8.1, but this is good practice anyway.
    5951dcb0
jquery.flot.pie.js 21.8 KB