From dddb2550740d1e991643a95628d34c8c38ae4f54 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 15 Aug 2013 11:47:05 -0400 Subject: [PATCH] new api fixed --- examples/new-api-test.html | 2 +- examples/todomvc/js/app.js | 2 +- src/compiler.js | 2 +- src/utils.js | 4 +--- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/examples/new-api-test.html b/examples/new-api-test.html index 7ac8d0ff5..9c7001d7c 100644 --- a/examples/new-api-test.html +++ b/examples/new-api-test.html @@ -3,7 +3,7 @@ - +
diff --git a/examples/todomvc/js/app.js b/examples/todomvc/js/app.js index efcce2874..f0eed30ed 100644 --- a/examples/todomvc/js/app.js +++ b/examples/todomvc/js/app.js @@ -1,4 +1,4 @@ -Seed.config({ debug: true }) +Seed.config({ debug: false }) var filters = { all: function () { return true }, diff --git a/src/compiler.js b/src/compiler.js index 62730de8c..d08a385a4 100644 --- a/src/compiler.js +++ b/src/compiler.js @@ -257,7 +257,7 @@ CompilerProto.bindContexts = function (bindings) { * Unbind and remove element */ CompilerProto.destroy = function () { - console.log('compiler destroyed: ', this.vm.$el) + utils.log('compiler destroyed: ', this.vm.$el) var i, key, dir, listener, inss // remove all directives that are instances of external bindings i = this.directives.length diff --git a/src/utils.js b/src/utils.js index 9dba3a281..43e1deb65 100644 --- a/src/utils.js +++ b/src/utils.js @@ -3,9 +3,7 @@ var config = require('./config'), toString = Object.prototype.toString, aproto = Array.prototype, arrayMutators = ['push','pop','shift','unshift','splice','sort','reverse'], - templates = {}, - indentation = 0, - indent = '' + templates = {} var arrayAugmentations = { remove: function (index) {