bendangelo/EntityJS — pull request #9 by eddroid (2012-06-25 21:59:33+00:00)
Title: demo app fixes

Instead of pushing these to you one-at-a-time I'm going to try to do it all at once. If there's something you don't like, I'll go back to submitting them one at a time.

`lib/entityjs/version.rb`
This file was being loaded twice. On the second load it throws a warning when you try to reset the VERSION constant. Instead of finding out why the file is being loaded twice I resolved the warning by preventing the variable from being set if it has already been set.

`src/display/circle.js`
The circle demo failed for me, throwing a JS TypeError at this line. When I changed `radius()` to `radius`, it worked. It looks like you were expecting `this` to be your circle component, but it wasn't. It didn't have the `radius()` function defined.

`src/display/el.js`
This is just a typo in the comments.

`templates/dom/scripts/els/btn.js`
This is just what I had to do to get the button in the dom example to work. I tried to make it work like the header component.