Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
flatbuffers
Commits
adc50051
Commit
adc50051
authored
Apr 08, 2017
by
Iain van der Bloat
Committed by
Wouter van Oortmerssen
Apr 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make flatbuffers.js into a UMD module (#4228)
parent
2aec8803
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
+11
-14
flatbuffers.js
js/flatbuffers.js
+11
-14
No files found.
js/flatbuffers.js
View file @
adc50051
...
...
@@ -3,18 +3,14 @@
/// @{
/// @cond FLATBUFFERS_INTERNAL
/**
* @fileoverview
*
* Need to suppress 'global this' error so the Node.js export line doesn't cause
* closure compile to error out.
* @suppress {globalThis}
*/
/**
* @const
* @namespace
*/
(
function
(
global
,
factory
)
{
typeof
exports
===
'object'
&&
typeof
module
!==
'undefined'
?
module
.
exports
=
{
flatbuffers
:
factory
()
}
:
typeof
define
===
'function'
&&
define
.
amd
?
define
(
factory
)
:
(
global
.
flatbuffers
=
factory
());
}(
this
,
(
function
()
{
'use strict'
;
/**
* @exports flatbuffers
*/
var
flatbuffers
=
{};
/**
...
...
@@ -1160,8 +1156,9 @@ flatbuffers.ByteBuffer.prototype.createLong = function(low, high) {
return
flatbuffers
.
Long
.
create
(
low
,
high
);
};
// Exports for Node.js and RequireJS
this
.
flatbuffers
=
flatbuffers
;
return
flatbuffers
;
})));
/// @endcond
/// @}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment