Shopify/batman — Issue #239: Error thrown if missing data-yield="main"
Author: robotmay
Created: 2011-11-17 00:10:01+00:00
State: open

It would appear (thanks to pvande) that if you're missing 'data-yield="main"' in your layout that it causes the following error:

```
Uncaught TypeError: Cannot read property 'childNodes' of undefined batman.js:5285
Batman.DOM.setInnerHTML.$setInnerHTML batman.js:5285
Batman.Controller.Controller.render batman.js:2993
__bind batman.js:15
Batman.Event.Event.fire batman.js:509
Batman.SimpleSet.SimpleSet.forEach batman.js:1639
Batman.SimpleHash.SimpleHash.forEach batman.js:1394
Batman.SimpleHash.SimpleHash.forEach batman.js:1397
Batman.SimpleSet.SimpleSet.forEach batman.js:1638
Batman.Event.Event.eachHandler batman.js:461
Batman.Event.Event.fire batman.js:508
Batman.EventEmitter.fire batman.js:566
Batman.View.View.render batman.js:4650
__bind batman.js:15
Batman.Event.Event.fire batman.js:509
Batman.SimpleSet.SimpleSet.forEach batman.js:1639
Batman.SimpleHash.SimpleHash.forEach batman.js:1394
Batman.SimpleHash.SimpleHash.forEach batman.js:1397
Batman.SimpleSet.SimpleSet.forEach batman.js:1638
Batman.Event.Event.eachHandler batman.js:461
Batman.Event.Event.fire batman.js:508
Batman.Event.Event.allowAndFire batman.js:514
Batman.EventEmitter.allowAndFire batman.js:571
(anonymous function) batman.js:6296
__bind batman.js:15
handler batman.js:147
```

The example which caused it: https://gist.github.com/8815213cba9e48478437