eval.js 223 B

1234567
  1. window.txEval = function(source, target){
  2. if (typeof source == "function") {
  3. return source.call(target || this);
  4. } else if (typeof source == "string") {
  5. return (target) ? target.eval(source) : this.eval(source);
  6. }
  7. };