DCL

An elegant OOP with mixins + AOP for JavaScript.

dcl.js

Version 1.x

dcl.js is a standard kernel of dcl. It augments mini.js. While mini.js implements OOP facilities, and supercalls, dcl.js adds AOP, chaining, and more utilities.

It can be included with following commands:

Include dcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// node.js
var dcl = require("dcl");
...

// AMD (code)
require(["dcl"], function(dcl){
  ...
});

// AMD (definition)
define(["dcl"], function(dcl){
  ...
});

// or you can call the file directly:

// AMD (code)
require(["dcl/dcl"], function(dcl){
  ...
});

// AMD (definition)
define(["dcl/dcl"], function(dcl){
  ...
});

Module API

The return value of this module is a function, which is called dcl() in this documentation.

dcl() is the same function returned by mini.js, but augmented with new functionality and new public properties.

Main properties:

Helpers:

Utilities:

Auxiliary properties: