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 06fd640e
authored
Jul 05, 2012
by
sdepold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed obsolete null emitter
1 parent
4be6547c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
20 deletions
lib/dao-factory.js
lib/emitters/null-emitter.js
lib/dao-factory.js
View file @
06fd640
...
...
@@ -103,8 +103,9 @@ module.exports = (function() {
DAOFactory
.
prototype
.
find
=
function
(
options
)
{
if
([
null
,
undefined
].
indexOf
(
options
)
>
-
1
)
{
var
NullEmitter
=
require
(
"./emitters/null-emitter"
)
return
new
NullEmitter
()
return
new
Utils
.
CustomEventEmitter
(
function
(
emitter
)
{
setTimeout
(
function
()
{
emitter
.
emit
(
'success'
,
null
)
},
10
)
}).
run
()
}
// options is not a hash but an id
...
...
lib/emitters/null-emitter.js
deleted
100644 → 0
View file @
4be6547
var
Utils
=
require
(
"../utils"
)
module
.
exports
=
(
function
(){
var
NullEmitter
=
function
(
delay
)
{
var
self
=
this
delay
=
delay
||
10
setTimeout
(
function
()
{
self
.
emitNull
()
},
delay
)
}
Utils
.
addEventEmitter
(
NullEmitter
)
NullEmitter
.
prototype
.
emitNull
=
function
()
{
this
.
emit
(
'success'
,
null
)
this
.
emit
(
'error'
,
null
)
}
return
NullEmitter
})()
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