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
5e3ba78f
Commit
5e3ba78f
authored
Aug 13, 2013
by
Trask Stalnaker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle undefined axisOptions
I ran into this issue when upgrading from 0.8.1 to 0.9-work.
parent
4318eeae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
jquery.flot.js
jquery.flot.js
+4
-4
No files found.
jquery.flot.js
View file @
5e3ba78f
...
...
@@ -867,10 +867,10 @@ Licensed under the MIT license.
// Compatibility with markrcote/flot-axislabels
if
(
!
axisOptions
.
label
&&
axisOptions
.
axisLabel
)
{
if
(
axisOptions
&&
!
axisOptions
.
label
&&
axisOptions
.
axisLabel
)
{
axisOptions
.
label
=
axisOptions
.
axisLabel
;
}
if
(
!
axisOptions
.
labelPadding
&&
axisOptions
.
axisLabelPadding
)
{
if
(
axisOptions
&&
!
axisOptions
.
labelPadding
&&
axisOptions
.
axisLabelPadding
)
{
axisOptions
.
labelPadding
=
axisOptions
.
axisLabelPadding
;
}
...
...
@@ -899,10 +899,10 @@ Licensed under the MIT license.
// Compatibility with markrcote/flot-axislabels
if
(
!
axisOptions
.
label
&&
axisOptions
.
axisLabel
)
{
if
(
axisOptions
&&
!
axisOptions
.
label
&&
axisOptions
.
axisLabel
)
{
axisOptions
.
label
=
axisOptions
.
axisLabel
;
}
if
(
!
axisOptions
.
labelPadding
&&
axisOptions
.
axisLabelPadding
)
{
if
(
axisOptions
&&
!
axisOptions
.
labelPadding
&&
axisOptions
.
axisLabelPadding
)
{
axisOptions
.
labelPadding
=
axisOptions
.
axisLabelPadding
;
}
...
...
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