During a recent re-factoring of some JavaScript I accidentally removed the last line of a function that told the UI to re-render according to the new data. After that I figured, why not move this outside of the function and get a little AOP look and feel. The code below gives a simplified version of the problem. https://gist.github.com/3022884#file_initialcode.js So with that in mind I created […]
The post Simple AOP in JavaScript appeared first on blog..