aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Beltran <ben@freshout.us>2014-01-15 12:23:29 -0600
committerBen Beltran <ben@freshout.us>2014-01-15 12:23:29 -0600
commit12ced5893b94e60ad3de3bd38d60bd2bfe541c85 (patch)
tree38ed22e62e232e24b0399e29885ddb3d592ed27c
parentb8f42ab9cc981cbf82418b07f630732365108d14 (diff)
Uses slice instead of splice now
-rw-r--r--lib/cobalt.js10
-rw-r--r--package.json2
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/cobalt.js b/lib/cobalt.js
index e1f4bea..9f7f6c0 100644
--- a/lib/cobalt.js
+++ b/lib/cobalt.js
@@ -159,7 +159,7 @@
},
log : function () {
- this._log.apply(this, [7].concat([].splice.call(arguments, 0)));
+ this._log.apply(this, [7].concat(Array.prototype.slice.call(arguments)));
},
debug : function () {
@@ -167,19 +167,19 @@
},
info : function () {
- this._log.apply(this, [6].concat([].splice.call(arguments, 0)));
+ this._log.apply(this, [6].concat(Array.prototype.slice.call(arguments)));
},
notice : function () {
- this._log.apply(this, [5].concat([].splice.call(arguments, 0)));
+ this._log.apply(this, [5].concat(Array.prototype.slice.call(arguments)));
},
warn : function () {
- this._log.apply(this, [4].concat([].splice.call(arguments, 0)));
+ this._log.apply(this, [4].concat(Array.prototype.slice.call(arguments)));
},
error : function () {
- this._log.apply(this, [3].concat([].splice.call(arguments, 0)));
+ this._log.apply(this, [3].concat(Array.prototype.slice.call(arguments)));
},
dir : function () {
diff --git a/package.json b/package.json
index 22de2d5..1f0dc23 100644
--- a/package.json
+++ b/package.json
@@ -17,7 +17,7 @@
"url" : "http://github.com/ktlacaelel"
}
],
- "version" : "0.2.1",
+ "version" : "0.2.2",
"dependencies" : {
"neon" : "1.0.x",
"socket.io-client" : "0.9.x",