Commit Graph

67 Commits

Author SHA1 Message Date
Evan You c0cd3e117e update eslint config, fix test case 2016-05-07 17:52:41 -04:00
Evan You 9f6c23f8c4 add "propsData" option 2016-04-18 13:34:15 -04:00
Blake Newman 25c84769c6 [Fix] [ISSUE-2687] Fix data functions being called twice. (#2689)
- Added test for checking prop to data clash
- Added test to ensure data function is only called once per strut
- Removed this._runtimeData uses 'data' for prop to data clash check
2016-04-18 13:20:53 -04:00
Evan You 493aef04cb ensure dynamic method resolution for component inline v-on (fix #2670) 2016-04-15 00:07:13 -04:00
Phan An 1ab4528ec3 Use more serious strings in tests 2016-04-06 12:52:56 -04:00
Evan You 38ee9670d4 improve warnings 2016-03-28 18:46:17 -04:00
Evan You 458982c3ff warn empty data functions 2016-03-25 01:09:33 -04:00
Evan You 5e8d6fedf9 chained write filters should be applied in reverse order (fix #2447) 2016-03-22 17:41:47 -04:00
Evan You d1788b98ac props refactor
- No need to merge props into the data object. they should just be
  defined as reactive properties on the vm instance.

- They should not observe the value when set. They should already be reactive
  if needed.
2016-03-17 18:37:03 -04:00
Evan You 208678b8a4 use custom matcher for warning tests 2016-03-09 17:32:05 -05:00
Evan You 521e8d2754 use standard and eslint 2.0 2016-02-17 18:31:19 -05:00
Evan You 244ea477b7 warn missing handler for child component v-on 2016-01-31 18:01:43 -05:00
Evan You f7a91fc9f4 build: adjust test build setup for easier requires 2015-12-26 20:02:57 -05:00
rhyzx 978c86ad23 add test for $argments variable 2015-12-02 15:06:02 +08:00
Evan You 9dc0d7d87f use ES2015 + new build setup 2015-11-18 15:01:05 -05:00
kazuya kawaguchi 2b79ebe418 fix: ocurred error in 'set' and 'delete' utility functions 2015-11-16 20:03:18 +09:00
Evan You fbfcfccc9f fix v-ref for dynamic components with keep-alive (fix #1695) 2015-11-04 10:50:15 -05:00
Evan You 74a6b0110d lifecycle api: deprecate $addChild() in favor of `parent` option 2015-10-05 17:41:15 -04:00
Evan You 178203d91e syntax update: v-ref, v-el; deprecate v-class & v-style 2015-09-19 16:48:56 -04:00
Evan You 4236c53740 unit tests pass 2015-09-15 22:50:20 -04:00
Evan You 8453e9f637 test for v-on custom events on child component 2015-09-15 21:37:49 -04:00
Evan You 88c8789d7d change prop- to bind- for props 2015-09-03 17:47:10 -04:00
Evan You 0c9d6dcf57 remove support for old prop syntax 2015-09-03 17:46:47 -04:00
Evan You 8cc6c72cd6 remove inherit option 2015-09-03 17:43:13 -04:00
Evan You 80515cc955 remove v-repeat 2015-09-03 17:43:13 -04:00
Evan You c4f307c650 cache computed by default (regression in #1232) 2015-09-03 15:16:59 -04:00
Evan You f844961580 make ref reactive 2015-09-03 15:16:58 -04:00
Evan You 9e56f97d44 make computed cache default to false 2015-09-03 15:16:57 -04:00
Evan You 8523968e7d rename files 2015-09-03 15:16:26 -04:00
Evan You 3fc91b970a computed properties should be cached by default 2015-08-25 12:21:15 -04:00
Evan You dbb3faced3 make computed property cache optional (close #1189) 2015-08-21 12:44:25 -04:00
Evan You 794214a3ff make prop watchers sync (fix #1162) 2015-08-15 14:30:36 -04:00
Evan You 12b4ae2ad6 lazy evaluation for computed properties 2015-07-19 00:00:27 -04:00
Evan You a1b9da8938 preserve reference to _data in destroyed instance so that proxy accessors still work (close #1017) 2015-07-07 17:43:14 +08:00
Evan You deac205843 eslint for tests 2015-07-02 20:59:20 +08:00
Evan You 47c52d6bfc support watch option alternative syntax 2015-06-28 09:24:08 +08:00
Evan You 850a7e779b _children -> $children 2015-06-25 21:34:53 -04:00
Evan You 1da494a38a improve prop initialization tests 2015-06-22 12:35:55 -04:00
Evan You ac7af063d1 add test for prop availablity in data() and created() 2015-06-22 12:06:59 -04:00
Evan You 8f6dfce54e initialize props properly 2015-06-22 11:14:27 -04:00
Evan You 0c78d63842 make props available in created() and data() 2015-06-21 16:10:04 -04:00
Evan You eabca4d8de props do not need to be in sync mode 2015-06-16 15:41:42 -04:00
Evan You a6de6e9d2a simplify prop binding modes 2015-06-13 23:02:27 -04:00
Evan You a6c8f40273 test $data swapping for all prop types 2015-06-12 12:14:30 -04:00
Evan You 400f8bf686 refactor content transclusion 2015-06-04 10:12:37 -04:00
Evan You 949ada9cd1 copy props when replacing $data (fix vuejs/Discussion#173) 2015-05-31 22:02:10 -04:00
Evan You d04315e9d6 refactor filter application 2015-05-28 15:13:35 -04:00
Evan You c0d22e8cae simplify watcher 2015-05-26 20:55:27 -04:00
Evan You 3959b676e2 use better warning assertions in tests 2015-05-12 23:01:16 -04:00
Evan You 6d0697b2e4 improve param attributes
- support multiple mustache tags
- support filters
- support arbitrary expression
- support explicit one-way binding syntax {{*parentKey}}
- non-settable expressions are automatically one-way
2015-05-11 11:16:20 -04:00