Closed tivac closed 8 years ago
Because this is odd-looking.
- controller : function(options) { + oninit: function(options) { var ctrl = this, - val = get(options.field, "attrs.value"); + val = get(options.attrs.field, "attrs.value"); - ctrl.id = id(options); + ctrl.id = id(options.attrs);
Working on this in https://github.com/tivac/mithril-codemods/tree/controller-first-arg - very broken atm.
Because this is odd-looking.