Browse Source

remove log, fix logic

Evan You 10 years ago
parent
commit
61a5249a0e
2 changed files with 2 additions and 3 deletions
  1. 2 1
      src/runtime/instance/render.js
  2. 0 2
      src/runtime/observer/batcher.js

+ 2 - 1
src/runtime/instance/render.js

@@ -68,8 +68,9 @@ export function renderMixin (Vue) {
     return () => {
       const prev = renderState.context
       renderState.context = this
-      return fn()
+      const children = fn()
       renderState.context = prev
+      return children
     }
   }
 

+ 0 - 2
src/runtime/observer/batcher.js

@@ -68,7 +68,6 @@ function runBatcherQueue (queue) {
     var watcher = queue[queueIndex]
     var id = watcher.id
     has[id] = null
-    console.log('running: ' + id)
     watcher.run()
     // in dev build, check and stop circular updates.
     if (process.env.NODE_ENV !== 'production' && has[id] != null) {
@@ -99,7 +98,6 @@ function runBatcherQueue (queue) {
 export function pushWatcher (watcher) {
   var id = watcher.id
   if (has[id] == null) {
-    console.log('push: ' + id)
     if (internalQueueDepleted && !watcher.user) {
       // an internal watcher triggered by a user watcher...
       // let's run it immediately after current user watcher is done.