Skip to content

Commit

Permalink
Ensure that pie's legendWidth remains numeric.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dnschnur committed Nov 22, 2012
1 parent 4e38170 commit 5951dcb
Showing 1 changed file with 764 additions and 764 deletions.
Loading

0 comments on commit 5951dcb

Please sign in to comment.