ng-FitText.js
ng-FitText.js copied to clipboard
fix resizing collisions caused by asynchronous nature of scope.$watch
The resizing sometimes wouldn't work as expected because resize was being called at different times with different values, and not always the most recent would win. By implementing a short delay, and ensuring that previous calls to resize() are cancelled, the resizing can be done more reliably.
Fixes #54. Thank you @Merott
@Merott @patrickmarabeas - Can we please get this merged?
Integrated the changes; check v4.2.2 and see whether it works as expected.