casbin / casbin-hub

The hub for Casbin
https://dashboard.casbin.com
Apache License 2.0
87 stars 46 forks source link

Fix #13: Replaced regular JS functions with ES6 arrow functions #19

Closed ani4aniket closed 4 years ago

ani4aniket commented 4 years ago

This PR replaces regular JavaScript functions with ES6 arrow function. Using arrow functions we don't need to bind this while using the functions as mentioned below. https://github.com/casbin/casbin-dashboard/blob/b0d12da8dcd7ea5db5a3c65ae36af771cbe715c1/web/src/ModelTable.js#L137

Fixes #19