We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
replace:true
1 parent 89d32e5 commit d740e0eCopy full SHA for d740e0e
src/compiler.js
@@ -45,7 +45,7 @@ function Compiler (vm, options) {
45
extend(compiler, options.compilerOptions)
46
47
// initialize element
48
- var el = compiler.setupElement(options)
+ var el = compiler.el = compiler.setupElement(options)
49
log('\nnew VM instance:', el.tagName, '\n')
50
51
// set compiler properties
@@ -145,7 +145,7 @@ var CompilerProto = Compiler.prototype
145
*/
146
CompilerProto.setupElement = function (options) {
147
// create the node first
148
- var el = this.el = typeof options.el === 'string'
+ var el = typeof options.el === 'string'
149
? document.querySelector(options.el)
150
: options.el || document.createElement(options.tagName || 'div')
151
0 commit comments