Skip to content

Commit

Permalink
Tiny optimizations to view rendering.
Browse files Browse the repository at this point in the history
  • Loading branch information
airhorns committed Mar 9, 2012
1 parent 99afc8a commit 9078dc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions lib/batman.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/batman.coffee
Expand Up @@ -5157,13 +5157,13 @@ class Batman.DOM.ViewBinding extends Batman.DOM.AbstractBinding
return unless viewClassOrInstance?
if viewClassOrInstance.isView
@view = viewClassOrInstance
@view.set 'node', @node
@view.set 'context', @renderContext
@view.set 'node', @node
else
@view = new viewClassOrInstance
node: @node
context: @renderContext
parentView: @renderContext.findKey('isView')?[1]
parentView: @renderer.view

Batman.data @node, 'view', @view

Expand Down

0 comments on commit 9078dc5

Please sign in to comment.