Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/compat.js

Issue 10213003: Make JsEngine::Evaluate() return a wrapper for v8::Value to accessdifferent variable types easily (Closed)
Patch Set: Addressed review comments Created April 17, 2013, 7:56 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/api.js ('k') | libadblockplus.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compat.js
===================================================================
--- a/lib/compat.js
+++ b/lib/compat.js
@@ -11,16 +11,17 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
// TODO: These need to be defined properly
+var window = this;
function XMLHttpRequest() {};
//
// Module framework stuff
//
function require(module)
{
@@ -255,17 +256,17 @@ FakeTimer.prototype =
{
this.callback = callback;
this.delay = delay;
this.scheduleTimeout();
},
scheduleTimeout: function()
{
var me = this;
- window.setTimeout(function()
+ setTimeout(function()
{
try
{
me.callback();
}
catch(e)
{
Cu.reportError(e);
« no previous file with comments | « lib/api.js ('k') | libadblockplus.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld