diff --git a/README.md b/README.md index 3bd661d1f..40c8bd0f2 100644 --- a/README.md +++ b/README.md @@ -481,7 +481,7 @@ Compatibility * Because the internals of this package do not rely on `google/protobuf/descriptor.proto`, options are parsed and presented literally. * If typed arrays are not supported by the environment, plain arrays will be used instead. -* Support for pre-ES5 environments like IE8 can be achieved by [using a polyfill](https://github.com/dcodeIO/protobuf.js/blob/master/scripts/polyfill.js) and, instead of using property getters and setters on reflection objects, calling the respective functions prefixed with `get`, `set` or `is` directly (i.e. calling `Type#getFieldsById()` instead of accessing `Type#fieldsById`). +* Support for pre-ES5 environments like IE8 can be achieved by [using a polyfill](https://github.com/dcodeIO/protobuf.js/blob/master/scripts/polyfill.js) and, instead of using property getters and setters on reflection objects, calling the respective functions prefixed with `get`, `set` or `is` directly (i.e. calling `Type#getFieldsById()` instead of accessing `Type#fieldsById`). Note that this also applies to virtual oneof properties (use `getKind`, `setKind` for example if the oneof is named `kind`). * If you need a proper way to work with 64 bit values (uint64, int64 etc.), you can install [long.js](https://github.com/dcodeIO/long.js) alongside this library. All 64 bit numbers will then be returned as a `Long` instance instead of a possibly unsafe JavaScript number ([see](https://github.com/dcodeIO/long.js)). **License:** [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html), bundled external libraries may have [their own license](https://github.com/dcodeIO/protobuf.js/tree/master/lib) diff --git a/src/util/extend/README.md b/src/util/extend/README.md index 372a5d16f..5f4f80dbb 100644 --- a/src/util/extend/README.md +++ b/src/util/extend/README.md @@ -22,7 +22,7 @@ var ChildPrototype = ParentClass.extend(ChildClass); // also inherits .extend it ```js function GrandchildClass() { } -var GrandchildClass = ChildClass.extend(GrandchildClass); // and so it goes forever +var GrandchildPrototype = ChildClass.extend(GrandchildClass); // and so it goes forever ``` **License:** [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)