Commit Graph

1668 Commits

Author SHA1 Message Date
Evan You
3c3e6ae1bb tweak 2017-02-23 22:42:51 -05:00
Evan You
7fa8fa76fe avoid duplicate lifecycle hooks during constructor resolution 2017-02-23 21:56:01 -05:00
AchillesJ
673acecc34 Remove unnecessary code (#4995) 2017-02-24 10:52:45 +08:00
Evan You
4cf49828c0 properly handle cosntructor options modification before global mixin application (fix #4976) 2017-02-23 18:11:18 -05:00
Evan You
2a5fb41d1c re-implement mergeVNodeHook to prevent memory leak (fix #4990) 2017-02-22 19:02:47 -05:00
Evan You
01b09e6bcd type for renderError option 2017-02-22 13:17:18 -05:00
Evan You
73c5614740 update types for new features 2017-02-21 22:35:50 -05:00
Evan You
8d25e8f574 make explicit transition duration tests more stable 2017-02-21 22:19:08 -05:00
Evan You
42492ffaf9 adjust explicit transition duration tests 2017-02-21 22:08:25 -05:00
Evan You
8e854a9ed1 only use click for v-model checkbox/radio in Chrome (fix #4796, #4896) 2017-02-21 21:25:57 -05:00
Evan You
29f6902d19 coverage 2017-02-21 13:25:57 -05:00
Evan You
0dd158fbaf bump deps 2017-02-21 13:14:39 -05:00
Evan You
689c107de4 feat: config.performance 2017-02-20 18:35:04 -05:00
Evan You
f916bcf371 feat: provide/inject (close #4029) 2017-02-20 16:58:24 -05:00
Evan You
1861ee9570 feat: renderError 2017-02-20 00:16:40 -05:00
Evan You
a1d5b22e34 throw error in ssr so it can be captured properly by renderer 2017-02-19 23:21:29 -05:00
Evan You
3c0cdb5535 improve error handling for lifecycle hooks 2017-02-19 23:21:29 -05:00
Evan You
3566d9296d update karma configs to use explicit plugins 2017-02-19 23:21:29 -05:00
Hanks
3e523e6d57 [weex] convert kebab-case attribute name to camelCase in compiler (#4964)
* [weex] add test case for camelize props

* [weex] add test case for append props

* [weex] camelize component attribute name

* [weex] more reliable camelize functions
2017-02-18 19:36:00 -05:00
Chris Casola
3dc9338479 Warn when defining a method with same name as a prop (#4950)
* Warn when defining a method with same name as a prop

* update error message
2017-02-18 09:09:27 -05:00
Evan You
9ccffe72db invoke activate/deactivate recursively + refactor (close #4242) 2017-02-17 18:56:09 -05:00
M Habib Rohman
2f520ba9ee fix doc comment typo (#4954) 2017-02-17 10:31:45 +01:00
Evan You
7f6c889a88 tweak event modifier codegen 2017-02-16 16:09:15 -05:00
kingwl
0e2dafa74c support mouse event modifier (#4866) 2017-02-16 16:04:04 -05:00
kazuya kawaguchi
f7062b9b75 flowtype reafactoring (#4945) 2017-02-16 15:57:59 -05:00
kingwl
8bb6c2bdaa support $on multi event (#4860) 2017-02-15 18:39:53 -05:00
Guillaume Chau
0598ab0c64 #4371 - Explicit transition durations (#4857)
* Add transition explicit duration

* Fix tests for explicit transition duration

* Tweaks & default to milliseconds

* Better tests

* Better test for change value case

* Fix transition duration tests

* Better flow typing

* Fix transition test

* Revert "Fix transition test"

This reverts commit db75b3801ed11182119c78ebae87f40a62803714.

* Fix transition test


Revert "Fix transition test"

This reverts commit db75b3801ed11182119c78ebae87f40a62803714.
Fix transition test

* Better flow types

* Warn message

* Better prop handling

* Better flow typings

* adjustments
2017-02-15 18:37:09 -05:00
Rahul Kadyan
acec8db2c4 [WIP] Support for ref callback (#4807)
*  Tests for ref callback

*  Support for ref callback

* Add test of inline ref callback

* adjust ref implementation strategy

* fix patch ref registration

* fix tests

* fix flow

* fix test for phantomjs
2017-02-15 17:29:13 -05:00
Evan You
8d88512837 ssr: resolve require() calls relative to bundle (fix #4936) 2017-02-15 12:07:07 -05:00
Evan You
6977109051 improve transition-group move detection (fix #4900, close #4911) 2017-02-15 09:59:43 -05:00
Evan You
ef57aa250f update weex events module 2017-02-14 17:17:21 -05:00
Evan You
05c769bf44 fix .once with other modifiers that prevent execution of a handler (fix #4846) 2017-02-14 17:09:37 -05:00
Evan You
f59aef08e6 further improve end tag check (close #4408) 2017-02-14 15:47:40 -05:00
Zephraph
0201d8ca1d Add foreignObject as a dedicated SVG element (fixes #4813) (#4926)
* Add foreignObject to isSVG list; Fix for #4813

* Remove extra comma, alphabetize
2017-02-14 14:36:36 -05:00
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
2017-02-14 14:35:46 -05:00
Herrington Darkholme
01151ce3fa fix #4872, use context agnostic Function constructor check (#4928)
* fix #4872, use context agnostic Function constructor check

* use getType to check Function Constructor

* fix negation
2017-02-14 13:40:57 -05:00
Evan You
dfaf1265a2 small tweak to filter parser 2017-02-14 13:34:51 -05:00
Riccardo Causo
7259aefbe8 filter division expression with parentheses (fix #4838) (#4844)
* filter division expression with parentheses (fix #4838)

* verify also dot and square brackets

* missed a link check sorry for the useless commit

* added + - and _ support
2017-02-14 13:30:11 -05:00
Alexander Sheboltaev
ebe27295df typings: type-checking WatchHandler -- refining 2017-02-14 13:24:21 -05:00
Alexander Sheboltaev
c662fe09c7 typings: type-checking WatchHandler
Makes watch handler argument to be typechecked when the expression is set
as a function.
2017-02-14 13:24:21 -05:00
Evan You
168200a00a tweak comments 2017-02-14 12:46:42 -05:00
Evan You
e870e6c6af move props definition to component prototype when possible 2017-02-14 12:20:43 -05:00
Evan You
406352baba move computed properties definition to component prototype when possible 2017-02-14 12:03:14 -05:00
Evan You
4f6b1014b3 improve $props test case 2017-02-14 11:39:05 -05:00
Evan You
87ffd0da9f tweaks 2017-02-14 11:39:05 -05:00
Evan You
5fea184d50 $props type improvements 2017-02-14 11:39:05 -05:00
yantene
ef40d1b7cf add the type of props in typescript definitions 2017-02-14 11:39:05 -05:00
yantene
22f9560c92 add $props 2017-02-14 11:39:05 -05:00
AchillesJ
f763fc2354 small improvements on html-parser (#4932)
* remove unnecessary code

* not need to capture group when decoding attribute value

* fix eslint
2017-02-14 09:05:00 -05:00
Evan You
9df7870b7f revert ssr readme edit 2017-02-13 14:46:54 -05:00