Merge pull request #852 from ncb000gt/master

Return null from getSelection if there's no selection.
pull/1/head
David Schnur 14 years ago
commit e9079c3e43

@ -146,6 +146,8 @@ The plugin allso adds the following methods to the plot object:
function getSelection() {
if (!selectionIsSane())
return null;
if (!selection.show) return null;
var r = {}, c1 = selection.first, c2 = selection.second;
$.each(plot.getAxes(), function (name, axis) {

Loading…
Cancel
Save