Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
殷洪(管理员)
/
raphael
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
be440bfe
authored
May 04, 2013
by
Tomas Alabes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Possibility to unbind all event handlers at once
parent
c08125b1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
+12
-10
raphael-min.js
+0
-0
raphael.core.js
+6
-5
raphael.js
+6
-5
No files found.
raphael-min.js
View file @
be440bfe
This source diff could not be displayed because it is too large. You can
view the blob
instead.
raphael.core.js
View file @
be440bfe
...
...
@@ -3028,11 +3028,12 @@
R
[
"un"
+
eventName
]
=
elproto
[
"un"
+
eventName
]
=
function
(
fn
)
{
var
events
=
this
.
events
||
[],
l
=
events
.
length
;
while
(
l
--
)
if
(
events
[
l
].
name
==
eventName
&&
events
[
l
].
f
==
fn
)
{
events
[
l
].
unbind
();
events
.
splice
(
l
,
1
);
!
events
.
length
&&
delete
this
.
events
;
return
this
;
while
(
l
--
){
if
(
events
[
l
].
name
==
eventName
&&
(
R
.
is
(
fn
,
"undefined"
)
||
events
[
l
].
f
==
fn
))
{
events
[
l
].
unbind
();
events
.
splice
(
l
,
1
);
!
events
.
length
&&
delete
this
.
events
;
}
}
return
this
;
};
...
...
raphael.js
View file @
be440bfe
...
...
@@ -3408,11 +3408,12 @@
R
[
"un"
+
eventName
]
=
elproto
[
"un"
+
eventName
]
=
function
(
fn
)
{
var
events
=
this
.
events
||
[],
l
=
events
.
length
;
while
(
l
--
)
if
(
events
[
l
].
name
==
eventName
&&
events
[
l
].
f
==
fn
)
{
events
[
l
].
unbind
();
events
.
splice
(
l
,
1
);
!
events
.
length
&&
delete
this
.
events
;
return
this
;
while
(
l
--
){
if
(
events
[
l
].
name
==
eventName
&&
(
R
.
is
(
fn
,
"undefined"
)
||
events
[
l
].
f
==
fn
))
{
events
[
l
].
unbind
();
events
.
splice
(
l
,
1
);
!
events
.
length
&&
delete
this
.
events
;
}
}
return
this
;
};
...
...
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