walmartlabs/thorax — pull request #161 by blakeembrey (2013-05-25 08:19:42+00:00)
Title: Safe guard against additional ready event triggers.

The ready event was triggering twice in a row when using `setView` via a LayoutView. Just added a safeguard to the event check since `appendTo` also triggers it's own ready events. Also moved the call to `_addChild` below the `appendTo` call since it makes more sense to me for the `ready` event to be triggered after the child is attached to the DOM.

Should fix #157 and has the test case attached.

There are also some other small fixes for JSHint and one of the test cases was missing a comma.