Each module should be resolved only once, so you can write a new
module that requires in the core module and then overrides the
function you want. As an example, say I wanted to change the way rave
core's registerWidget function works....
define(['core/rave_widget_manager'], function (widgetManager) {
widgetManager.registerWidget = function(){
console.log('heyoooooo');
}
});
I have now overridden the function with my new implementation.
On Tue, Aug 27, 2013 at 5:54 PM, Chris Geer <[email protected]> wrote:
> How would I go about replacing a JS function from Rave with my own
> implementation using the new require approach? I don't want to have to
> overwrite the whole file if possible.
>
> Chris