Evan You
e0a7c1ac68
use data attribute for ssr marker
8 years ago
Evan You
0bb529a275
also warn when listening to camelCase events in in-DOM templates
8 years ago
Piotr Kaminski
e47b1e5c4d
Allow named properties on reactive arrays. ( #5216 )
* Allow named properties on reactive arrays.
* Remove semicolons to comport with style guide.
* Pacify flow type checking.
Without the cast to any, flow complains that Array doesn't have an
__ob__ property. This appears to be an instance of this issue:
https://github.com/facebook/flow/issues/1330
8 years ago
kingwl
4c4a2ab65f
trigger event after reassigned state - Fix #5191 ( #5233 )
8 years ago
AchillesJ
c6ab2e06d4
warn when template contains text outside root element ( #5164 )
* warn when template contains text outside root element
* fix warned flag
* make warn once a function
8 years ago
Evan You
e7dfcc334d
fix custom directive arg fall through ( fix #5162 )
8 years ago
kingwl
4964b253d0
fix wrong order of generate modifier code ( #5147 )
* fix wrong order of generate modifier code
* add unit test of #5146
* Update events.js
8 years ago
Herrington Darkholme
8fca83d6b6
fix #5121 : parse content in textarea as plaintext ( #5143 )
* fix #5121 : parse content in textarea as plaintext
* update comment
8 years ago
Evan You
a524919d21
fix v-on inline function expression with modifiers ( fix #5120 )
8 years ago
YOU
e12d96a132
chore(parser.spec): fix an IE conditional test with a typo ( #5102 )
* chore(parser.spec): fix an IE conditional test with a typo
* check children.length is 0, instead of undefined
8 years ago
YOU
61930e0cc6
chore(test): fix some typos ( #5101 )
8 years ago
Nathan Shively-Sanders
2dc177ffb3
SFC parseComponent pads complete content with spaces ( #5059 )
* SFC parseComponent pads content with spaces
when `{ pad: true }` is provided. That is, all content is converted to
spaces. Previously, each line was truncated to "//". The new padding
method works better with character-oriented tools that calculate
positions by distance from the beginning of the file instead of by line
number.
* Made parseComponent's pad support "line" | "space"
Also still supports true for backward compatibility. True is the same as
"line".
8 years ago
kazuya kawaguchi
0922b1d8aa
improve set/delete API ( #5050 )
8 years ago
Evan You
3294eba5a5
fix v-on .left .right compat with keyboard events ( fix #5046 )
8 years ago
Evan You
05c769bf44
fix .once with other modifiers that prevent execution of a handler ( fix #4846 )
8 years ago
Evan You
f59aef08e6
further improve end tag check ( close #4408 )
8 years ago
Zephraph
97d36bc23f
Pass attributes to parseComponent (addresses #4914 ) ( #4925 )
* Pass attributes to parseComponent
* Edited source in the right place, added test
* Back out changes made to the generated compiler build file
* Add a few more checks
8 years ago
Evan You
af619151c6
improve other parser warnings
8 years ago
Evan You
cfb4d7c655
improve parser warning for tags with no matching close tag
8 years ago
Evan You
a0a619f611
fix sfc parser hanging on trailing ill-formatted brackets (fix vue-loader/#628)
8 years ago
chengchao
e02fb1294d
preserve the only whitespace child ( #4760 )
8 years ago
dhcmrlchtdj
938fa4efcc
fix(sfc): component contains '<' only ( #4753 )
* fix(sfc): component contains '<' only
* update based on reviews
8 years ago
Evan You
c660917b29
improve event update algorithm (thanks to suggestions from @defcc )
8 years ago
Evan You
1a1952ba81
handle single -> array & array -> single event handler patching ( fix #4650 )
8 years ago
Evan You
08bd81f8c0
fix #4530 with smaller change scope
8 years ago
Evan You
ab0a2259e0
Revert "also bind static special attrs as props ( fix #4530 )"
This reverts commit b3ebfef91d
.
8 years ago
Evan You
4e830ba3c3
Revert "Mark node with static props as static ( #4662 )"
This reverts commit 92657249dd
.
8 years ago
chengchao
92657249dd
Mark node with static props as static ( #4662 )
* fix special static attrs as dom prop
* refactor
8 years ago
Evan You
2ee516dfc8
ensure updated hook is called after children are updated as well ( fix #4599 )
8 years ago
Evan You
6b1755ae8c
adjust hydration strategy ( fix #4560 )
8 years ago
chengchao
66bf120f7a
enforce to loop through children to get the correct normalize type ( #4572 )
8 years ago
Evan You
01f533db1a
avoid duplicate whitespace nodes caused by comments
8 years ago
Evan You
de220a635d
ignore text nodes between v-if conditions ( fix #4533 )
8 years ago
Evan You
b3ebfef91d
also bind static special attrs as props ( fix #4530 )
8 years ago
chengchao
71cc0a575b
Node maybe be removed v-html/v-text ( #4548 )
8 years ago
Evan You
f1c38674f2
use simple normalization for components, fix functional component multi-root node ( fix #4472 )
8 years ago
Evan You
6116bbf13a
fix svg foreignObject regression ( fix #4478 )
8 years ago
chengchao
6918436bf8
Update normalize children (fix 4466) ( #4468 )
* omit boolean node
* add test case
* update boolean type
* update test case
* update test case
8 years ago
Evan You
d2f7f1913e
fix codegen tests
8 years ago
Evan You
4b51ad0483
rename _h -> _c so that vue-template-es2015-compiler can use the new internal createElement without breaking backwards compatibility
8 years ago
Evan You
7c3c86f360
fix namespace hoisting
8 years ago
Evan You
79e1058799
wip: refactor compiler to skip normalization when possible
wip fix
wip fix
wip fix
8 years ago
Evan You
1def2d11a5
fix test for emptyVNode rename
8 years ago
Evan You
de7764a385
refactor patch createElm function, fix component hook merging
8 years ago
chengchao
6ea9a4db42
Support mutliple keys for keycode ( #4328 )
* support mutliple keys for keycode
* update flow type
* add test case
* update comment
* update flow type
* update comment
8 years ago
Changyu Geng
9215ff0295
Modifier once for v-on ( #4267 )
* Modifier once for v-on
* Reformat code
* Modifier once for v-on: using removeEventListener instead, bug fix of handler arguments passing, bug fix of modifier ordering problem
* Enhancement of event listener removal which allows rendering of capturing / once events for render function
* Reformat code
8 years ago
Evan You
1903df4991
rename ASTElement node.conditions -> node.ifConditions, avoid mutating it during codegen ( close #4317 )
8 years ago
Evan You
ae4db82c4b
fix unexpected warnings in tests
8 years ago
Evan You
b7946a4b22
wip: fix tests with expected warnings
8 years ago
(´・ω・`)
fce3f04a44
Ensure Vue instance's vnode and element is up to date ( #4299 )
* fix #4284 , recursively update vnode element
* fix #4284 , ensure vm's vnode is up to date
* add test for edge case
8 years ago