Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Interfaces. In JavaScript.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 Demos
Octocat-spinner-32 Source
Octocat-spinner-32 Specs
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 package.yml
README.md

Interface - Copyright (c) 2010 Christoph Pojer

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.

Screenshot

This Plugin is part of MooTools PowerTools!.

Build

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

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

How to use

See Demos/Example.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
Something went wrong with that request. Please try again.