You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 12, 2021. It is now read-only.
My first thought was this belongs in public/js but controllers seems best. Anyway, this is the most basic of basic that allows for easy mixins and proxying.
// HtmlController.jsdefine(['mvc!c/PrimalClay'],function(PrimalClay){functionHtmlController(params){// Normal stuff except none of that for (; i < mixins.length; i++) business}// Get the primal clay format of the HtmlControllervarpHtmlController=PrimalClay(HtmlController);// Add in the nav mixinpHtmlController.addMixin('nav','function (params) { // nav mixin stuff // with sugar for proxy (start is not actually start, just a wrapper function for the initial call) PrimalClay.proxy(params, 'start', function (start) {
data.clear();
// Automatically coerce arguments to an array, automatically return start.apply(this, args);
start.array(arguments);
};
});
});
The text was updated successfully, but these errors were encountered:
_PAST NOTES_
My first thought was this belongs in
public/js
butcontrollers
seems best. Anyway, this is the most basic of basic that allows for easy mixins and proxying.The text was updated successfully, but these errors were encountered: