UNPKG

instance-js

Version:
26 lines (18 loc) 523 B
I.on("require#formbuddy", function(done) { I.require("msgP", function() { I.emit("loaded#msgP", done); }); }); I.on("loaded#msgP", function(done) { console.log(msgP); function formbuddy(form, setup, selectPresets) { return new Formbuddy(form, setup, selectPresets); } function Formbuddy(form, setup, selectPresets) { this.form = I.isString(form) ? I(form) : form||null; } function Field(elem, attrs, config) { } window.formbuddy = I.formValidator = formbuddy; done(); });