Skip to content

Commit

Permalink
bug: remove code that remove unnecessary things
Browse files Browse the repository at this point in the history
  • Loading branch information
Eren committed Jan 28, 2022
1 parent 97abfb8 commit d38a85f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions sweetAjax.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ $.widget( "sa.sweetAjax", {
...this.options,
}

//remove unnecessary things
for (option in ajaxOptions){
if (option === "classes" || option === "disabled" || option === "create"){
delete ajaxOptions[option];
}
}

// add complete handler if none of the ajax handlers not sent
if (!Object.keys(ajaxOptions).includes("complete") && !Object.keys(ajaxOptions).includes("success") && !Object.keys(ajaxOptions).includes("error")){
ajaxOptions.complete = function (){}
Expand Down

0 comments on commit d38a85f

Please sign in to comment.