不要怂,就是干,撸起袖子干!

Commit 5759c5b3 by Thomas Watson Steen

Use ES5 `Array.isArray` instead of Underscore.js `isArray`

1 parent 92615757
Showing with 2 additions and 2 deletions
...@@ -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
......
...@@ -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 [
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!