Interface 1.0

Interfaces for Class to ensure certain properties are defined.

Only works with MooTools 1.3.0+.

Checks after creating an instance of a MooTools Class.

This Plugin is part of MooTools PowerTools!.



Details

Author
Christoph Pojer
Current version
1.0
GitHub
cpojer/mootools-interface
Downloads
2932
Category
Native
Tags
Report
GitHub Issues

Releases


Dependencies

  • _self_/_current_:
    • Core/Type
    • Core/Class

How to use

See Demos/Example.js


Build

Build via Packager, requires MooTools Core to be registered to Packager already

packager register /path/to/interface
packager build Interface/* > interface.js

Todo

  • Currently it creates a mutator for the initialize method which is horribly ugly, wrong usage of the system and always requires to define an initialize method. This will be fixed in the future. Please forgive me. The API however should be pretty much feature complete.
  • Provide a simple way to disable the checks for non-debug mode

Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus