Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@nicknisi
Created December 5, 2014 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicknisi/a217b7137ce33500a758 to your computer and use it in GitHub Desktop.
Save nicknisi/a217b7137ce33500a758 to your computer and use it in GitHub Desktop.
Blackbox demo
require([
'dojo/_base/declare'
], function (declare) {
var Parent = declare(null, {
method: function () {
console.log('PARENT');
}
});
var Mixin = declare(null, {
method: function () {
console.log('MIXIN');
this.inherited(arguments);
}
});
var Child = declare([ Parent, Mixin ], {
method: function () {
console.log('CHILD');
this.inherited(arguments);
}
});
var child = window.child = new Child();
debugger;
child.method();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment