0.1.1 • Published 8 years ago

aop-extend v0.1.1

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
8 years ago

Example usage:

// Require Your Original untouched Module to Extend
Original = require('./Original.js');
// Require AopExtend
AopExtend = require('./AopExtend');

// Create Instances
o = new Original();
a = new AopExtend(o); // pass your original object instance to the constructor

var jBrown = function() {
  console.log('make it funky');
}

o.methodOne.addHook('pre', jBrown);

o.methodOne();
// prints 'make it funky'
// executes original function
0.1.1

8 years ago

0.1.0

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago