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

Unified Diff: mojo/public/js/new_bindings/unicode.js

Issue 2779533002: Revert of Mojo JS bindings: change module loading solution. (Closed)
Patch Set: Created 3 years, 9 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 | « mojo/public/js/new_bindings/router.js ('k') | mojo/public/js/new_bindings/validator.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/js/new_bindings/unicode.js
diff --git a/mojo/public/js/new_bindings/unicode.js b/mojo/public/js/new_bindings/unicode.js
index a3c0df747c08bc05ad6733c5fb797ba2483154ad..be2ba0e63c8700efbfb99f0ae88492bd23023ab8 100644
--- a/mojo/public/js/new_bindings/unicode.js
+++ b/mojo/public/js/new_bindings/unicode.js
@@ -7,9 +7,7 @@
* stored in ArrayBuffers. There is much room for optimization in this code if
* it proves necessary.
*/
-(function() {
- var internal = mojoBindings.internal;
-
+define("mojo/public/js/unicode", function() {
/**
* Decodes the UTF8 string from the given buffer.
* @param {ArrayBufferView} buffer The buffer containing UTF8 string data.
@@ -45,7 +43,9 @@
return utf8String.length;
}
- internal.decodeUtf8String = decodeUtf8String;
- internal.encodeUtf8String = encodeUtf8String;
- internal.utf8Length = utf8Length;
-})();
+ var exports = {};
+ exports.decodeUtf8String = decodeUtf8String;
+ exports.encodeUtf8String = encodeUtf8String;
+ exports.utf8Length = utf8Length;
+ return exports;
+});
« no previous file with comments | « mojo/public/js/new_bindings/router.js ('k') | mojo/public/js/new_bindings/validator.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698