Releases: rdking/Class.js
2.2.0
It's finally happened. I've reached a point where new features will be slow coming, if they happen at all. All the changes I've made since the 2.1.0 build have pretty much been bug fixes of one kind or another. I've gone almost a week without needing to tweak anything in Class.js, so it's my guess that it's pretty stable. Feel free to hammer away at it.
You can now access this project through npm under the name "java-class".
As always, I'll try to maintain the documentation at: http://thekingsnotice.blogspot.com
Now with Type contraints!
The new type constraints allow you to specify a Class that the returned value must be an instance of, or Interface that the returned value must implement. This version is also loaded with bug fixes that bring it more in parity with the functionality of a traditional Object-Oriented language.
2.0.1
2.0
1.0.1: More Fixes
This version fixes a few typo's and other errors I made when changing Class.js to support private constructors.
Class.js Library
This is the initial release of the Class.js
Library. This release includes:
Class.js:
A Class Definition Factory that produces constructor functions and full use ofPublic
,Private
, andProtected
scope.WeakMap.js:
A JavaScript WeakMap implementation that only leaks one GUID per object added to the map. All value data for a given key is destroyed when the key is garbage collected. This WeakMap implementation meets the requirements of the current specification save for the GUID sized leak.Enum.js:
An Enumeration Definition Factory that produces constructor functions. The constructor produces enumeration objects that can only take values from the corresponding Enumeration.Functor.js:
A simple Dynamic Method Binder that allows a function to be dynamically rebound to any object without affecting the original function reference or the object being bound.