tbranyen/backbone.layoutmanager — Issue #57: then not passing el to anonymous function
Author: dancannon
Created: 2012-03-03 18:20:47+00:00
State: open

Hi,

I could be doing something wrong but I have tried to do as the readme says and attach jquery plugins after rendering through use of the then function, however this function is not passed the el variable.

```javascript
render: function(manage) {
return manage(this).render().then(function(el) {
//el is undefined
$(el).find(".some-element").somePlugin();
});
}
```

However the following works,

```
render: function(manage) {
return manage(this).render().then(function(el) {
$this.$el.find(".some-element").somePlugin();
});
}
```

Is the documentation wrong or am I doing something wrong?

Than