DCL

An elegant OOP with mixins + AOP for JavaScript.

advise.js

Version 1.x

advise.js provides general AOP facilities to advise object methods dynamically. Unlike dcl.js it is not used to weave methods of “classes”, but works with objects.

It can be included with following commands:

Include advise
1
2
3
4
5
6
7
8
9
10
11
12
13
// node.js
var advise = require("dcl/advise");
...

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

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

Module API

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

advise() is an AOP composition engine. Additionally it hosts a raft of public properties.

Helpers:

Auxiliary properties: