text: $vs.engine.objects.Ajax=function(){function t(t){}var e="GET",n="HTML",o="",r=!0,p={};return t.prototype.url=function(t,e){return r=e||!0,o=t,this},t.prototype.get=function(t){return e="GET",p=t||{},this},t.prototype.post=function(t){return e="POST",p=t||{},this},t.prototype.put=function(t){return e="PUT",p=t||{},this},t.prototype.patch=function(t){return e="PATCH",p=t||{},this},t.prototype["delete"]=function(t){return e="DELETE",p=t||{},this},t.prototype.json=function(t,e){n="JSON",this.then(t,e)},t.prototype.then=function(t,n){var u=new XMLHttpRequest;u.open(e,o,r),u.setRequestHeader("Content-type","application/x-www-form-urlencoded"),u.send(p),u.onreadystatechange=function(){if(u.readyState==XMLHttpRequest.DONE&&200==u.status){var e=u.responseText;t(e,u)}},u.onerror=function(){n(u.error)}},t}();