Skip to content

Commit 19c269f

Browse files
committed
Generate lookupTYPE functions programmatically; Ensure working reflection class names with minified builds
1 parent 6f9ffb6 commit 19c269f

21 files changed

+96
-56
lines changed

dist/protobuf.js

Lines changed: 37 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/protobuf.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/protobuf.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/protobuf.min.js.gz

83 Bytes
Binary file not shown.

dist/protobuf.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/runtime/protobuf.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/runtime/protobuf.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/runtime/protobuf.min.js.gz

0 Bytes
Binary file not shown.

scripts/bundle.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ function bundle(compress, runtime) {
4949
.pipe(sourcemaps.init({ loadMaps: true }))
5050
.pipe(
5151
gulpif(compress, uglify({
52-
mangleProperties: { regex: /^_/ }
52+
mangleProperties: {
53+
regex: /^_/
54+
}
5355
}))
5456
)
5557
.pipe(header(license, {

src/enum.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
"use strict";
22
module.exports = Enum;
33

4+
Enum.className = "Enum";
5+
46
var ReflectionObject = require("./object");
57
/** @alias Enum.prototype */
68
var EnumPrototype = ReflectionObject.extend(Enum);

0 commit comments

Comments
 (0)