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 0b75f1b7
authored
Sep 03, 2013
by
Jan Aagaard Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move optClone call to a proper place
1 parent
e2777690
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
lib/dao-factory.js
lib/dao-factory.js
View file @
0b75f1b
...
@@ -325,7 +325,7 @@ module.exports = (function() {
...
@@ -325,7 +325,7 @@ module.exports = (function() {
DAOFactory
.
prototype
.
findAll
=
function
(
options
,
queryOptions
)
{
DAOFactory
.
prototype
.
findAll
=
function
(
options
,
queryOptions
)
{
var
hasJoin
=
false
var
hasJoin
=
false
var
options
=
optClone
(
options
)
options
=
optClone
(
options
)
if
(
typeof
options
===
'object'
)
{
if
(
typeof
options
===
'object'
)
{
if
(
options
.
hasOwnProperty
(
'include'
))
{
if
(
options
.
hasOwnProperty
(
'include'
))
{
...
@@ -368,8 +368,6 @@ module.exports = (function() {
...
@@ -368,8 +368,6 @@ module.exports = (function() {
DAOFactory
.
prototype
.
find
=
function
(
options
,
queryOptions
)
{
DAOFactory
.
prototype
.
find
=
function
(
options
,
queryOptions
)
{
var
hasJoin
=
false
var
hasJoin
=
false
options
=
optClone
(
options
)
// no options defined?
// no options defined?
// return an emitter which emits null
// return an emitter which emits null
if
([
null
,
undefined
].
indexOf
(
options
)
!==
-
1
)
{
if
([
null
,
undefined
].
indexOf
(
options
)
!==
-
1
)
{
...
@@ -381,6 +379,7 @@ module.exports = (function() {
...
@@ -381,6 +379,7 @@ module.exports = (function() {
var
primaryKeys
=
this
.
primaryKeys
var
primaryKeys
=
this
.
primaryKeys
,
keys
=
Object
.
keys
(
primaryKeys
)
,
keys
=
Object
.
keys
(
primaryKeys
)
,
keysLength
=
keys
.
length
,
keysLength
=
keys
.
length
options
=
optClone
(
options
)
// options is not a hash but an id
// options is not a hash but an id
if
(
typeof
options
===
'number'
)
{
if
(
typeof
options
===
'number'
)
{
...
...
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