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

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

Issue 2759563004: 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/bindings.js ('k') | mojo/public/js/new_bindings/codec.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/js/new_bindings/buffer.js
diff --git a/mojo/public/js/new_bindings/buffer.js b/mojo/public/js/new_bindings/buffer.js
index e35f69513fb85b0c5be70c7e78fc4fb18c9e88a0..7c0853c107d398d871fae7ab3a65fec32d26ba22 100644
--- a/mojo/public/js/new_bindings/buffer.js
+++ b/mojo/public/js/new_bindings/buffer.js
@@ -2,7 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-define("mojo/public/js/buffer", function() {
+(function() {
+ var internal = mojoBindings.internal;
var kHostIsLittleEndian = (function () {
var endianArrayBuffer = new ArrayBuffer(2);
@@ -150,7 +151,5 @@ define("mojo/public/js/buffer", function() {
this.dataView.setFloat64(offset, value, kHostIsLittleEndian);
}
- var exports = {};
- exports.Buffer = Buffer;
- return exports;
-});
+ internal.Buffer = Buffer;
+})();
« no previous file with comments | « mojo/public/js/new_bindings/bindings.js ('k') | mojo/public/js/new_bindings/codec.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698