Created
December 5, 2014 21:39
-
-
Save nicknisi/a217b7137ce33500a758 to your computer and use it in GitHub Desktop.
Blackbox demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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