summaryrefslogtreecommitdiff
path: root/mojo/public/js/new_bindings/buffer.js
diff options
context:
space:
mode:
Diffstat (limited to 'mojo/public/js/new_bindings/buffer.js')
-rw-r--r--mojo/public/js/new_bindings/buffer.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/mojo/public/js/new_bindings/buffer.js b/mojo/public/js/new_bindings/buffer.js
index e35f69513f..c44058bd0f 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 = mojo.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;
+})();