diff --git a/README.md b/README.md index 81c1bf0..cc67b5d 100755 --- a/README.md +++ b/README.md @@ -44,8 +44,23 @@ For example splitting an app into: Each _feature_ extending the same base API but implementing only it's specific functionality, adding new methods where needed, and on setup only the relevant -features/functionality for a specific runtime are loaded, for example for a -Web server context creating the following prototype chain: +features/functionality for a specific runtime are loaded, for example creating +the following prototype chains: + + + + + + + + + + + + + +
+Web site + +Standalone app +
+ ``` +-UI-------+ | Web Site | @@ -55,9 +70,16 @@ Web server context creating the following prototype chain: +--------------------+ | Base Data Handling | +--------------------+ + + + + + ``` -And for a standalone app: + + ``` +-UI----------+ | Commandline | @@ -74,6 +96,11 @@ And for a standalone app: +--------------------+ ``` +
+ Note that since _JavaScript_ does not support multiple inheritance, the feature dependency _graph_ is linearized when creating a prototype/mixin chain. @@ -337,8 +364,9 @@ Copyright (c) 2018+, Alex A. Naanou, All rights reserved. - + [actions]: https://github.com/flynx/actions.js +