vendredi 10 février 2017

What is this ";(($) => " and how to make it work on IE? [duplicate]

I saw the usage of this syntax ";(($) => " in a web project, a freelancer helped me with. This keeps failing to work on IE. Works fine on chrome and other browsers. Is shown as a syntax error on IE.

The website uses Laravel, but this seems to me more of a javascript thing, maybe a closure or something?

This is what an example code looks like :

;(($) =>  {
  $.fn.UpdateEquipment = () => {
    return $(this).each(() => {
      let equipment = new Equipment;
      equipment.createEquipment();
      equipment.editEquipment();
      equipment.updateEquipment();
      equipment.deleteEquipment();
    });
  }

Can anyone help me on this, please?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kbFFpv
via IFTTT

Aucun commentaire:

Enregistrer un commentaire