Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 8cdd3324
authored
Jul 01, 2012
by
sdepold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed initial handling of serial emitters
1 parent
e4a65dff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
lib/query-chainer.js
lib/query-chainer.js
View file @
8cdd332
...
@@ -15,7 +15,13 @@ module.exports = (function() {
...
@@ -15,7 +15,13 @@ module.exports = (function() {
this
.
eventEmitter
=
null
this
.
eventEmitter
=
null
emitters
=
emitters
||
[]
emitters
=
emitters
||
[]
emitters
.
forEach
(
function
(
emitter
)
{
self
.
add
(
emitter
)
})
emitters
.
forEach
(
function
(
emitter
)
{
if
(
Array
.
isArray
(
emitter
))
{
self
.
add
.
apply
(
self
,
emitter
)
}
else
{
self
.
add
(
emitter
)
}
})
}
}
QueryChainer
.
prototype
.
add
=
function
(
emitterOrKlass
,
method
,
params
,
options
)
{
QueryChainer
.
prototype
.
add
=
function
(
emitterOrKlass
,
method
,
params
,
options
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment