Skip to content

Commit

Permalink
reference doc in component data function warning (vuejs#4378)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvfritz authored and yyx990803 committed Dec 4, 2016
1 parent 1cf377f commit 4120d1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/instance/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ function initData (vm: Component) {
if (!isPlainObject(data)) {
data = {}
process.env.NODE_ENV !== 'production' && warn(
'data functions should return an object.',
'data functions should return an object:\n' +
'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
vm
)
}
Expand Down

0 comments on commit 4120d1a

Please sign in to comment.