lib/jazrb/jasmine/jasmine-0.10.0.js in smparkes-jazrb-0.0.8 vs lib/jazrb/jasmine/jasmine-0.10.0.js in smparkes-jazrb-0.0.9

- old
+ new

@@ -511,10 +511,15 @@ * Jasmine environment. * * @param {String} url path to the file to include * @param {Boolean} opt_global */ + +jasmine._eval = function(__jasmine__) { + return (function(){eval(__jasmine__);})(); +}; + jasmine.include = function(url, opt_global) { if (opt_global) { document.write('<script type="text/javascript" src="' + url + '"></' + 'script>'); } else { var xhr; @@ -524,18 +529,18 @@ xhr.send(null); } catch(e) { throw new Error("couldn't fetch " + url + ": " + e); } - return eval(xhr.responseText); + return jasmine._eval(xhr.responseText); } }; jasmine.version_= { "major": 0, "minor": 10, "build": 0, - "revision": 1257456021 + "revision": 1257815655 }; /** * @namespace */ jasmine.util = {};