Next: Internal Methods/Objects, Previous: Class Module Design, Up: Implementation Details [Contents]
B.2 Visibility Implementation
One of the major distinguishing factors of ease.js is its full visibility support (see Access Modifiers). This feature was the main motivator behind the project. Before we can understand the use of this feature, we have to understand certain limitations of JavaScript and how we may be able to work around them.
• Encapsulation In JavaScript: | ||
• Hacking Around the Issue of Encapsulation: | ||
• The Visibility Object: | ||
• Method Wrapping: | ||
• Pre-ES5 Fallback: |