Skip to content
Browse files

traceOn check in traceX

  • Loading branch information...
1 parent 71ad009 commit 57a87fe2e94cc19637f0434194e7475c01a31ffa @norm2782 committed Dec 29, 2011
Showing with 6 additions and 4 deletions.
  1. +6 −4 LazyJS.js
View
10 LazyJS.js
@@ -23,10 +23,12 @@
}
function traceX(msg, x) {
- if (evaluatable(x)) {
- trace(msg, typeof x + "/" + typeof x.__eOrV__ + ":" + x);
- } else {
- trace(msg, typeof x + ":" + x);
+ if (traceOn) {
+ if (evaluatable(x)) {
+ trace(msg, typeof x + "/" + typeof x.__eOrV__ + ":" + x);
+ } else {
+ trace(msg, typeof x + ":" + x);
+ }
}
}

0 comments on commit 57a87fe

Please sign in to comment.
Something went wrong with that request. Please try again.