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
095799cd
Commit
095799cd
authored
Apr 16, 2014
by
David Schnur
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1286 from dnschnur/jquery-detach-fix
Provide a detach shim for jQuery prior to 1.4.
parents
3aec7ce0
e17d3798
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
jquery.flot.js
jquery.flot.js
+16
-0
No files found.
jquery.flot.js
View file @
095799cd
...
...
@@ -38,6 +38,22 @@ Licensed under the MIT license.
var
hasOwnProperty
=
Object
.
prototype
.
hasOwnProperty
;
// A shim to provide 'detach' to jQuery versions prior to 1.4. Using a DOM
// operation produces the same effect as detach, i.e. removing the element
// without touching its jQuery data.
// Do not merge this into Flot 0.9, since it requires jQuery 1.4.4+.
if
(
!
$
.
fn
.
detach
)
{
$
.
fn
.
detach
=
function
()
{
return
this
.
each
(
function
()
{
if
(
this
.
parentNode
)
{
this
.
parentNode
.
removeChild
(
this
);
}
});
};
}
///////////////////////////////////////////////////////////////////////////
// The Canvas object is a wrapper around an HTML5 <canvas> tag.
//
...
...
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