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
6dfc581d
Commit
6dfc581d
authored
Jul 22, 2013
by
David Schnur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update inline jquery-resize to the latest version.
Resolves #997 and #1081.
parent
ef23fd40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
jquery.flot.resize.js
jquery.flot.resize.js
+1
-1
No files found.
jquery.flot.resize.js
View file @
6dfc581d
...
...
@@ -20,7 +20,7 @@ can just fix the size of their placeholders.
* http://benalman.com/about/license/
*/
(
function
(
$
,
h
,
c
){
var
a
=
$
([]),
e
=
$
.
resize
=
$
.
extend
(
$
.
resize
,{}),
i
,
k
=
"setTimeout"
,
j
=
"resize"
,
d
=
j
+
"-special-event"
,
b
=
"delay"
,
f
=
"throttleWindow"
;
e
[
b
]
=
250
;
e
[
f
]
=
true
;
$
.
event
.
special
[
j
]
=
{
setup
:
function
(){
if
(
!
e
[
f
]
&&
this
[
k
]){
return
false
}
var
l
=
$
(
this
);
a
=
a
.
add
(
l
);
$
.
data
(
this
,
d
,{
w
:
l
.
width
(),
h
:
l
.
height
()});
if
(
a
.
length
===
1
){
g
()}},
teardown
:
function
(){
if
(
!
e
[
f
]
&&
this
[
k
]){
return
false
}
var
l
=
$
(
this
);
a
=
a
.
not
(
l
);
l
.
removeData
(
d
);
if
(
!
a
.
length
){
clearTimeout
(
i
)}},
add
:
function
(
l
){
if
(
!
e
[
f
]
&&
this
[
k
]){
return
false
}
var
n
;
function
m
(
s
,
o
,
p
){
var
q
=
$
(
this
),
r
=
$
.
data
(
this
,
d
);
r
.
w
=
o
!==
c
?
o
:
q
.
width
();
r
.
h
=
p
!==
c
?
p
:
q
.
height
();
n
.
apply
(
this
,
arguments
)}
if
(
$
.
isFunction
(
l
)){
n
=
l
;
return
m
}
else
{
n
=
l
.
handler
;
l
.
handler
=
m
}}};
function
g
(){
i
=
h
[
k
](
function
(){
a
.
each
(
function
(){
var
n
=
$
(
this
),
m
=
n
.
width
(),
l
=
n
.
height
(),
o
=
$
.
data
(
this
,
d
);
if
(
m
!==
o
.
w
||
l
!==
o
.
h
){
n
.
trigger
(
j
,[
o
.
w
=
m
,
o
.
h
=
l
])}});
g
()},
e
[
b
])}
})(
jQuery
,
this
);
(
function
(
$
,
t
,
n
){
function
p
(){
for
(
var
n
=
r
.
length
-
1
;
n
>=
0
;
n
--
){
var
o
=
$
(
r
[
n
]);
if
(
o
[
0
]
==
t
||
o
.
is
(
":visible"
)){
var
h
=
o
.
width
(),
d
=
o
.
height
(),
v
=
o
.
data
(
a
);
!
v
||
h
===
v
.
w
&&
d
===
v
.
h
?
i
[
f
]
=
i
[
l
]:(
i
[
f
]
=
i
[
c
],
o
.
trigger
(
u
,[
v
.
w
=
h
,
v
.
h
=
d
]))}
else
v
=
o
.
data
(
a
),
v
.
w
=
0
,
v
.
h
=
0
}
s
!==
null
&&
(
s
=
t
.
requestAnimationFrame
(
p
))}
var
r
=
[],
i
=
$
.
resize
=
$
.
extend
(
$
.
resize
,{}),
s
,
o
=
"setTimeout"
,
u
=
"resize"
,
a
=
u
+
"-special-event"
,
f
=
"delay"
,
l
=
"pendingDelay"
,
c
=
"activeDelay"
,
h
=
"throttleWindow"
;
i
[
l
]
=
250
,
i
[
c
]
=
20
,
i
[
f
]
=
i
[
l
],
i
[
h
]
=!
0
,
$
.
event
.
special
[
u
]
=
{
setup
:
function
(){
if
(
!
i
[
h
]
&&
this
[
o
])
return
!
1
;
var
t
=
$
(
this
);
r
.
push
(
this
),
t
.
data
(
a
,{
w
:
t
.
width
(),
h
:
t
.
height
()}),
r
.
length
===
1
&&
(
s
=
n
,
p
())},
teardown
:
function
(){
if
(
!
i
[
h
]
&&
this
[
o
])
return
!
1
;
var
t
=
$
(
this
);
for
(
var
n
=
r
.
length
-
1
;
n
>=
0
;
n
--
)
if
(
r
[
n
]
==
this
){
r
.
splice
(
n
,
1
);
break
}
t
.
removeData
(
a
),
r
.
length
||
(
cancelAnimationFrame
(
s
),
s
=
null
)},
add
:
function
(
t
){
function
s
(
t
,
i
,
s
){
var
o
=
$
(
this
),
u
=
o
.
data
(
a
);
u
.
w
=
i
!==
n
?
i
:
o
.
width
(),
u
.
h
=
s
!==
n
?
s
:
o
.
height
(),
r
.
apply
(
this
,
arguments
)}
if
(
!
i
[
h
]
&&
this
[
o
])
return
!
1
;
var
r
;
if
(
$
.
isFunction
(
t
))
return
r
=
t
,
s
;
r
=
t
.
handler
,
t
.
handler
=
s
}},
t
.
requestAnimationFrame
||
(
t
.
requestAnimationFrame
=
function
(){
return
t
.
webkitRequestAnimationFrame
||
t
.
mozRequestAnimationFrame
||
t
.
oRequestAnimationFrame
||
t
.
msRequestAnimationFrame
||
function
(
e
,
n
){
return
t
.
setTimeout
(
e
,
i
[
f
])}}()),
t
.
cancelAnimationFrame
||
(
t
.
cancelAnimationFrame
=
function
(){
return
t
.
webkitCancelRequestAnimationFrame
||
t
.
mozCancelRequestAnimationFrame
||
t
.
oCancelRequestAnimationFrame
||
t
.
msCancelRequestAnimationFrame
||
clearTimeout
}())
})(
jQuery
,
this
);
(
function
(
$
)
{
var
options
=
{
};
// no options
...
...
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