A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuejs/vue/commit/4459b87de902cf3ba496a104304ca80d1c9824c1 below:

avoid observing VNodes · vuejs/vue@4459b87 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+2

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+2

-1

lines changed Original file line number Diff line number Diff line change

@@ -1,6 +1,7 @@

1 1

/* @flow */

2 2 3 3

import Dep from './dep'

4 +

import VNode from '../vdom/vnode'

4 5

import { arrayMethods } from './array'

5 6

import {

6 7

def,

@@ -104,7 +105,7 @@ function copyAugment (target: Object, src: Object, keys: Array<string>) {

104 105

* or the existing observer if the value already has one.

105 106

*/

106 107

export function observe (value: any, asRootData: ?boolean): Observer | void {

107 -

if (!isObject(value)) {

108 +

if (!isObject(value) || value instanceof VNode) {

108 109

return

109 110

}

110 111

let ob: Observer | void

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4