summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorportix <none@none>2013-02-25 21:05:12 +0100
committerportix <none@none>2013-02-25 21:05:12 +0100
commit1ff3a8bc3ad4b5cdc6cb9da31172a4eb01f4b794 (patch)
tree453207dec88ac43436095d8e1cf1f49d9d623b90 /scripts
parentf1398192ecd1af3f205f7e6edf4e2fed54c89f2c (diff)
downloaddwb-1ff3a8bc3ad4b5cdc6cb9da31172a4eb01f4b794.zip
Allow function parameter for scripts.debug
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/io.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/lib/io.js b/scripts/lib/io.js
index 578268ae..4694855d 100644
--- a/scripts/lib/io.js
+++ b/scripts/lib/io.js
@@ -21,6 +21,8 @@
{
value : function (params)
{
+ if (typeof params == "function" && this._arguments)
+ return params.bind(this);
var outMessage = new String();
params = params || {};
var offset = params.offset || 0;