Index: components/dom_distiller/core/javascript/domdistiller.js |
diff --git a/components/dom_distiller/core/javascript/domdistiller.js b/components/dom_distiller/core/javascript/domdistiller.js |
index 8f5c357dd4b914534cb56201a7bdbc30d2c66e70..b542a4feaa5378d9f79a942064a187684b1dd7a1 100644 |
--- a/components/dom_distiller/core/javascript/domdistiller.js |
+++ b/components/dom_distiller/core/javascript/domdistiller.js |
@@ -14,15 +14,12 @@ |
// This include will be processed at build time by grit. |
<include src="../../../../third_party/dom_distiller_js/package/js/domdistiller.js"/> |
} |
- var context = Object.create(window); |
- context.setTimeout = function() {}; |
- context.clearTimeout = function() {}; |
+ context = Object.create(window); |
initialize(context); |
// The OPTIONS placeholder will be replaced with the DomDistillerOptions at |
// runtime. |
- var distiller = context.com.dom_distiller.client.DomDistiller; |
- var res = distiller.applyWithOptions($$OPTIONS); |
+ res = context.com.dom_distiller.DomDistiller.applyWithOptions($$OPTIONS); |
return res; |
} catch (e) { |
window.console.error("Error during distillation: " + e); |