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.
1 parent 0f7a929 commit b9f62f7Copy full SHA for b9f62f7
src/compiler.js
@@ -13,6 +13,7 @@ var Emitter = require('./emitter'),
13
slice = Array.prototype.slice,
14
log = utils.log,
15
makeHash = utils.hash,
16
+ def = utils.defProtected,
17
hasOwn = Object.prototype.hasOwnProperty
18
19
/**
@@ -41,9 +42,9 @@ function Compiler (vm, options) {
41
42
if (scope) utils.extend(vm, scope, true)
43
44
compiler.vm = vm
- vm.$ = makeHash()
45
- vm.$el = el
46
- vm.$compiler = compiler
+ def(vm, '$', makeHash())
+ def(vm, '$el', el)
47
+ def(vm, '$compiler', compiler)
48
49
// keep track of directives and expressions
50
// so they can be unbound during destroy()
0 commit comments