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 5759c5b3
authored
Jan 10, 2013
by
Thomas Watson Steen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use ES5 `Array.isArray` instead of Underscore.js `isArray`
1 parent
92615757
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
lib/dao.js
lib/utils.js
lib/dao.js
View file @
5759c5b
...
@@ -160,7 +160,7 @@ module.exports = (function() {
...
@@ -160,7 +160,7 @@ module.exports = (function() {
else
{
else
{
// extra args
// extra args
fn_args
=
details
.
hasOwnProperty
(
"args"
)
?
details
.
args
:
details
fn_args
=
details
.
hasOwnProperty
(
"args"
)
?
details
.
args
:
details
if
(
!
Utils
.
_
.
isArray
(
fn_args
))
if
(
!
Array
.
isArray
(
fn_args
))
fn_args
=
[
fn_args
]
fn_args
=
[
fn_args
]
// error msg
// error msg
fn_msg
=
details
.
hasOwnProperty
(
"msg"
)
?
details
.
msg
:
false
fn_msg
=
details
.
hasOwnProperty
(
"msg"
)
?
details
.
msg
:
false
...
...
lib/utils.js
View file @
5759c5b
...
@@ -50,7 +50,7 @@ var Utils = module.exports = {
...
@@ -50,7 +50,7 @@ var Utils = module.exports = {
return
connection
.
format
.
apply
(
connection
,
[
arr
.
shift
(),
arr
])
return
connection
.
format
.
apply
(
connection
,
[
arr
.
shift
(),
arr
])
},
},
isHash
:
function
(
obj
)
{
isHash
:
function
(
obj
)
{
return
Utils
.
_
.
isObject
(
obj
)
&&
!
Utils
.
_
.
isArray
(
obj
);
return
Utils
.
_
.
isObject
(
obj
)
&&
!
Array
.
isArray
(
obj
);
},
},
toSqlDate
:
function
(
date
)
{
toSqlDate
:
function
(
date
)
{
return
[
return
[
...
...
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