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 7c0853c107d398d871fae7ab3a65fec32d26ba22..e35f69513fb85b0c5be70c7e78fc4fb18c9e88a0 100644 |
--- a/mojo/public/js/new_bindings/buffer.js |
+++ b/mojo/public/js/new_bindings/buffer.js |
@@ -2,8 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-(function() { |
- var internal = mojoBindings.internal; |
+define("mojo/public/js/buffer", function() { |
var kHostIsLittleEndian = (function () { |
var endianArrayBuffer = new ArrayBuffer(2); |
@@ -151,5 +150,7 @@ |
this.dataView.setFloat64(offset, value, kHostIsLittleEndian); |
} |
- internal.Buffer = Buffer; |
-})(); |
+ var exports = {}; |
+ exports.Buffer = Buffer; |
+ return exports; |
+}); |