Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
F
flot
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HS-public
flot
Commits
e9079c3e
Commit
e9079c3e
authored
Nov 25, 2012
by
David Schnur
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #852 from ncb000gt/master
Return null from getSelection if there's no selection.
parents
baaec0d0
54ce0b2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
jquery.flot.selection.js
jquery.flot.selection.js
+2
-0
No files found.
jquery.flot.selection.js
View file @
e9079c3e
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment