diff options
Diffstat (limited to 'components/dom_distiller/core/javascript/domdistiller.js')
-rw-r--r-- | components/dom_distiller/core/javascript/domdistiller.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/components/dom_distiller/core/javascript/domdistiller.js b/components/dom_distiller/core/javascript/domdistiller.js index 8f5c357..b542a4f 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); |