Repair $.extend({}, ajax.DEFAULTS, options) if for example it's call like this

ajax.DEFAULTS['onError'] = myfunc
options.onError  = null

$.extend  result is options.onError  = null
Merge pull request #6 from luisza/master

Use default options for $.ajax function