jquery-phoenix icon indicating copy to clipboard operation
jquery-phoenix copied to clipboard

Change from setInterval to change events

Open netsi1964 opened this issue 11 years ago • 3 comments

Thank you for sharing!

I know that the setInterval solution works, but I just believe that a approach where you listen for changes would perhaps be a better approach.

netsi1964 avatar Jan 25 '14 09:01 netsi1964

I agree with this. Maybe make it an option to have it both ways?

chriscct7 avatar Apr 11 '14 03:04 chriscct7

I created a fork and pull request for a change that implements this. It's a two liner in coffee.

bjerzyna avatar May 04 '14 07:05 bjerzyna

Listening to changes quite hard to implement because of compatibility with other plugins like chosen.js and select2 for example. Simple approach to listen to change event works from time to time if you are using custom form elements. But if you implement it as an option I will merge it with pleasure.

kugaevsky avatar Jul 20 '14 23:07 kugaevsky