This is a toy program.

To reproduce bug, user closes popup window with top-right close button.

Then click button with text: "Click me"

It will then fail on button handler: win.show()

Error message: Uncaught TypeError: Cannot read property 'addCls' of null

Browser: Google Chrome, Version 35.0.1916.153 m

Google Chrome is up to date.


Editor: Visual Studio 2013 Professional


Enclosed is index.html, app.coffee and app.js


Using CDN: http://ift.tt/1nrLpHu