Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Unified Diff: components/dom_distiller/core/javascript/domdistiller.js

Issue 844043004: Revert of Roll DomDistillerJS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/dom_distiller_js/README.chromium » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | third_party/dom_distiller_js/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698