Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
527fe8a8
...
527fe8a8bc9057da8ee92631eb873de8b8f3dfbb
authored
2013-12-16 14:32:07 +0100
by
mickaelandrieu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
REFS #687 - Removed optional tags arguments
1 parent
26cd46aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
14 deletions
modules/events.js
modules/events.js
View file @
527fe8a
...
...
@@ -202,20 +202,7 @@ EventEmitter.prototype.prependListener = function prependListener(type, listener
return
this
;
};
EventEmitter
.
prototype
.
on
=
function
on
(
type
,
listener
,
tag
)
{
switch
(
tag
)
{
case
"ADD"
:
return
this
.
addListener
(
type
,
listener
);
break
;
case
"PREPEND"
:
return
this
.
prependListener
;
break
;
default
:
return
this
.
addListener
(
type
,
listener
);
}
};
EventEmitter
.
prototype
.
on
=
EventEmitter
.
prototype
.
addListener
;
EventEmitter
.
prototype
.
once
=
function
once
(
type
,
listener
)
{
if
(
'function'
!==
typeof
listener
)
{
...
...
Please
register
or
sign in
to post a comment