From 766171e4c8b6650ea9c6bc3e76c9c96973c2f546 Mon Sep 17 00:00:00 2001 From: dcodeIO Date: Thu, 15 Dec 2016 13:07:29 +0100 Subject: [PATCH] README [ci skip] --- README.md | 2 +- src/util/extend/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)