Skip to content
Browse files

use generic userdata instead of view

  • Loading branch information...
1 parent f38762b commit 5bf95b1a38a18b637a85ae7156b8bd1fbdca946a @dodo committed Jun 7, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/template.coffee
View
6 src/template.coffee
@@ -31,8 +31,8 @@ class Template extends EventEmitter
constructor: (opts = {}, template) ->
# options
[template, opts] = [opts, {}] if typeof opts is 'function'
- view = opts.view
- opts.view = null # prevent infinite recursion
+ userdata = opts.userdata
+ opts.userdata = null # prevent infinite recursion
# defaults
opts.encoding ?= 'utf-8'
opts.doctype ?= off
@@ -55,7 +55,7 @@ class Template extends EventEmitter
# instantiate
@xml = new ExtendedBuilder opts
@xml.template = this
- @xml.view = view
+ @xml.userdata = userdata
# override query
old_query = @xml.query
@xml.query = (type, tag, key) ->

0 comments on commit 5bf95b1

Please sign in to comment.
Something went wrong with that request. Please try again.