Opened 10 years ago
Closed 10 years ago
#14160 closed feature (worksforme)
Function overloading
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.10.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hello guys
You have many methods which tackes defferent parameters types and every time in code you do many checks to put parameters values to right variables. Here my proposition how to make code more clear https://github.com/redexp/js-fn-overloading and here example how method Jquery.fn.on can look with it https://github.com/redexp/js-fn-overloading/blob/master/examples/jquery-on.js
Note: See
TracTickets for help on using
tickets.
Interesting resource—thanks for sharing! Unfortunately, this is not a priority or an issue that is creating significant pain for developers.