Skip to content

Commit

Permalink
Added protobuf.roots to minimal runtime, see #554
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Dec 14, 2016
1 parent b0aef62 commit da07d8b
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 21 deletions.
2 changes: 1 addition & 1 deletion dist/protobuf.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/protobuf.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/protobuf.min.js.gz
Binary file not shown.
14 changes: 6 additions & 8 deletions dist/runtime/protobuf.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/runtime/protobuf.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/runtime/protobuf.min.js

Large diffs are not rendered by default.

Binary file modified dist/runtime/protobuf.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/runtime/protobuf.min.js.map

Large diffs are not rendered by default.

12 changes: 5 additions & 7 deletions runtime/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,18 @@
// Can be used as a drop-in replacement for the full library as it has the same general structure.
var protobuf = exports;

var Writer =
protobuf.Writer = require("../src/writer");
var Writer = protobuf.Writer = require("../src/writer");
protobuf.BufferWriter = Writer.BufferWriter;
var Reader =
protobuf.Reader = require("../src/reader");
var Reader = protobuf.Reader = require("../src/reader");
protobuf.BufferReader = Reader.BufferReader;
protobuf.util = require("../src/util/runtime");
protobuf.util = require("../src/util/runtime");
protobuf.roots = {};
protobuf.configure = configure;

function configure() {
Reader._configure();
}

protobuf.configure = configure;

// Be nice to AMD
if (typeof define === "function" && define.amd)
define(["long"], function(Long) {
Expand Down

0 comments on commit da07d8b

Please sign in to comment.