|
@@ -11,7 +11,6 @@ var Emitter = require('./emitter'),
|
|
|
// cache methods
|
|
// cache methods
|
|
|
slice = [].slice,
|
|
slice = [].slice,
|
|
|
each = [].forEach,
|
|
each = [].forEach,
|
|
|
- log = utils.log,
|
|
|
|
|
makeHash = utils.hash,
|
|
makeHash = utils.hash,
|
|
|
extend = utils.extend,
|
|
extend = utils.extend,
|
|
|
def = utils.defProtected,
|
|
def = utils.defProtected,
|
|
@@ -50,7 +49,7 @@ function Compiler (vm, options) {
|
|
|
|
|
|
|
|
// initialize element
|
|
// initialize element
|
|
|
var el = compiler.el = compiler.setupElement(options)
|
|
var el = compiler.el = compiler.setupElement(options)
|
|
|
- log('\nnew VM instance: ' + el.tagName + '\n')
|
|
|
|
|
|
|
+ utils.log('\nnew VM instance: ' + el.tagName + '\n')
|
|
|
|
|
|
|
|
// set compiler properties
|
|
// set compiler properties
|
|
|
compiler.vm = el.vue_vm = vm
|
|
compiler.vm = el.vue_vm = vm
|
|
@@ -586,7 +585,7 @@ CompilerProto.bindDirective = function (directive) {
|
|
|
*/
|
|
*/
|
|
|
CompilerProto.createBinding = function (key, isExp, isFn) {
|
|
CompilerProto.createBinding = function (key, isExp, isFn) {
|
|
|
|
|
|
|
|
- log(' created binding: ' + key)
|
|
|
|
|
|
|
+ utils.log(' created binding: ' + key)
|
|
|
|
|
|
|
|
var compiler = this,
|
|
var compiler = this,
|
|
|
bindings = compiler.bindings,
|
|
bindings = compiler.bindings,
|