Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.36 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff --git a/utils/tmpl.js b/utils/tmpl.js
  2. index 9ad46be..557dfc1 100644
  3. --- a/utils/tmpl.js
  4. +++ b/utils/tmpl.js
  5. @@ -202,7 +202,7 @@ jQuery.tmpl = {
  6.                                         with ( ctx ) {
  7.                                                 // And all the computed variables
  8.                                                 with ( VARS ) {
  9. -                                                       return eval( "(" + code + ")" );
  10. +                                                       return eval( "(function() { return (" + code + "); })()" );
  11.                                                 }
  12.                                         }
  13.                                 }