jashkenas / backbone

Give your JS App some Backbone with Models, Views, Collections, and Events
http://backbonejs.org
MIT License
28.1k stars 5.39k forks source link

Token error 'delete' on an old browser #4242

Closed mardon86 closed 1 year ago

mardon86 commented 3 years ago

Token error 'delete' at line 1621 in old android browser (Webkit <= 533)

var methodMap = {
    create: 'POST',
    update: 'PUT',
    patch: 'PATCH',
--> delete: 'DELETE',
    read: 'GET'
};

maybe we should put a quotation mark on delete key

jgonggrijp commented 2 years ago

Thanks for reporting @mardon86.

Pull requests welcome.

EvanHahn commented 1 year ago

It looks like this was fixed in 19ce298f789a60d55aaf3d12ab233656df9d564a and released in 1.4.1.

jgonggrijp commented 1 year ago

Thanks for making me aware of that @EvanHahn! Closing.