Convert decorator to custom widget in DOJO?
问题 I would like to know if it possible to convert my decorator function in a custom widget (based on dijit/form/Select ) in order to apply a monkey patch. Or do you know an alternative solution ? require([ 'dijit/form/Select', 'dojo/_base/window', 'dojo/domReady!' ], function(Select, win) { var decorator = function(select) { select.on('change', function(value) { alert(value); }); select.dropDown._onUpArrow = function() { this.focusPrev() }.bind(select.dropDown); select.dropDown._onDownArrow =