(function (factory){ if (typeof define === "function" && define.amd) { define(["jquery", "./version"] , factory); } else { factory(jQuery); } } (function ($){ return $.fn._form = function (){ return typeof this[0].form === "string"? this.closest("form"): $(this[0].form); } ; } ));