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

Unified Diff: ui/webui/resources/js/cr.js

Issue 577843003: Revert of Add public API generation with cr.makePublic() and handle it in compiler pass (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@H_options_errors_3
Patch Set: Created 6 years, 3 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 | « third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/cr.js
diff --git a/ui/webui/resources/js/cr.js b/ui/webui/resources/js/cr.js
index 95b2cee051b836a29c60faa31bad5fae2a807b6f..94c7553714cdc167a2c7bf87009f7416b80aae33 100644
--- a/ui/webui/resources/js/cr.js
+++ b/ui/webui/resources/js/cr.js
@@ -294,23 +294,6 @@
};
}
- /**
- * Forwards public APIs to private implementations.
- * @param {Function} ctor Constructor that have private implementations in its
- * prototype.
- * @param {Array.<string>} methods List of public method names that have their
- * underscored counterparts in constructor's prototype.
- * @param {*=} opt_target Target node.
- */
- function makePublic(ctor, methods, opt_target) {
- methods.forEach(function(method) {
- ctor[method] = function() {
- var target = opt_target || ctor.getInstance();
- return target[method + '_'].apply(target, arguments);
- };
- });
- }
-
return {
addSingletonGetter: addSingletonGetter,
createUid: createUid,
@@ -320,7 +303,6 @@
dispatchSimpleEvent: dispatchSimpleEvent,
exportPath: exportPath,
getUid: getUid,
- makePublic: makePublic,
PropertyKind: PropertyKind,
get doc() {
« no previous file with comments | « third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698