Commit Graph

866 Commits

Author SHA1 Message Date
Evan You c277369948 fix unit testing for transitions 2015-09-04 10:49:41 -04:00
Evan You c771ac2e07 fix unit tests for attr, class, style & el 2015-09-04 10:29:00 -04:00
Evan You 9de3879ad2 fix directive unit tests 2015-09-04 10:04:56 -04:00
Evan You cc2756ca83 fix unit test for compile refactor (wip) 2015-09-03 23:41:52 -04:00
Evan You b4a0d98388 fix rebase errors 2015-09-03 17:53:20 -04:00
Evan You 88c8789d7d change prop- to bind- for props 2015-09-03 17:47:10 -04:00
Evan You c1738644d7 fix eslint 2015-09-03 17:47:10 -04:00
Evan You 96452b7860 tokensToExp no longer need to deal with one time bindings 2015-09-03 17:47:10 -04:00
Evan You 271b4cf281 remove old directive parser 2015-09-03 17:47:10 -04:00
Evan You 88aba5ffd8 remove object handling in attr binding 2015-09-03 17:46:48 -04:00
Evan You 18b90e9243 naming updates 2015-09-03 17:46:48 -04:00
Evan You 2c235d6518 deprecate mustaches in partial name 2015-09-03 17:46:47 -04:00
Evan You 84de2bcdca remove v-ref deprecation warning 2015-09-03 17:46:47 -04:00
Evan You 0c9d6dcf57 remove support for old prop syntax 2015-09-03 17:46:47 -04:00
Evan You e442923785 restructure directives & remove attribute interpolation 2015-09-03 17:46:02 -04:00
Evan You b7f96637b7 remove old key filter 2015-09-03 17:44:36 -04:00
Evan You 1571ab8464 remove v-ref 2015-09-03 17:44:35 -04:00
Evan You 586cb42615 remove exp, true-exp and false-exp params 2015-09-03 17:44:35 -04:00
Evan You 4209eadee0 remove options param for <select> 2015-09-03 17:44:35 -04:00
Evan You 8cc6c72cd6 remove inherit option 2015-09-03 17:43:13 -04:00
Evan You 1169252c07 remove $data as prop 2015-09-03 17:43:13 -04:00
Evan You 511539cfd1 remove <content> 2015-09-03 17:43:13 -04:00
Evan You 204e20f096 remove strict mode 2015-09-03 17:43:13 -04:00
Evan You 19cfe95543 remove wait-for 2015-09-03 17:43:13 -04:00
Evan You 54c93ac39a remove $add 2015-09-03 17:43:13 -04:00
Evan You 80515cc955 remove v-repeat 2015-09-03 17:43:13 -04:00
Evan You 95d5ace7f5 support new literal syntax 2015-09-03 17:42:26 -04:00
Evan You 0818e697dd support new literal directive syntax 2015-09-03 17:31:54 -04:00
Evan You f40e2d7937 use bind- syntax for props 2015-09-03 16:24:43 -04:00
Evan You 08b1ca31a3 revert transition handling 2015-09-03 15:17:00 -04:00
Evan You 6af5db6566 allow referencing host with ref inside transclusion content (close #1147) 2015-09-03 15:17:00 -04:00
Evan You c4f307c650 cache computed by default (regression in #1232) 2015-09-03 15:16:59 -04:00
Evan You 2100ca7a6c implement activate hook 2015-09-03 15:16:59 -04:00
Evan You afa4d7f01c support directly use v-for for select options 2015-09-03 15:16:59 -04:00
Evan You f9ff579d28 new syntax for v-model object value bindings 2015-09-03 15:16:59 -04:00
Evan You cc7377d4b8 default event propagation to false 2015-09-03 15:16:59 -04:00
Evan You 42dc999944 test bind-el 2015-09-03 15:16:59 -04:00
Evan You a9af6c05fe implement scope-wise directive priority 2015-09-03 15:16:59 -04:00
Evan You f4af9f685e hoist el 2015-09-03 15:16:58 -04:00
Evan You 8153977714 hoist component binding 2015-09-03 15:16:58 -04:00
Evan You c29177fb60 test for partial bind-name 2015-09-03 15:16:58 -04:00
Evan You f844961580 make ref reactive 2015-09-03 15:16:58 -04:00
Evan You c1ac5887bc directive.raw is useless 2015-09-03 15:16:58 -04:00
Evan You 50a46e8a41 support bind-ref 2015-09-03 15:16:58 -04:00
Evan You 32f6fd452d support bind-is 2015-09-03 15:16:58 -04:00
Evan You a0e8df3957 rework transition 2015-09-03 15:16:58 -04:00
Evan You 4ca31b8d81 tests for new prop- syntax 2015-09-03 15:16:57 -04:00
Evan You cb8d6f3b41 test for new key filter syntax 2015-09-03 15:16:57 -04:00
Evan You 9e56f97d44 make computed cache default to false 2015-09-03 15:16:57 -04:00
Evan You dd376974e1 implement prop- syntax 2015-09-03 15:16:57 -04:00
Evan You c4186fbf7f fix bind- arg caching 2015-09-03 15:16:57 -04:00
Evan You d3068b3865 unit test for bind- and on- 2015-09-03 15:16:57 -04:00
Evan You 580679e038 simplified new directive parser 2015-09-03 15:16:57 -04:00
Evan You 9e91bf21b7 update v-for warnings 2015-09-03 15:16:56 -04:00
Evan You fe5fca2baa warn unknown custom elements (test) 2015-09-03 15:16:56 -04:00
Evan You 144fe50c8f update examples and fix tests for <slot> 2015-09-03 15:16:27 -04:00
Evan You f865f3f2e5 implement <slot> api 2015-09-03 15:16:26 -04:00
Evan You 8523968e7d rename files 2015-09-03 15:16:26 -04:00
Evan You da22da1fb5 test nested fragments 2015-09-03 15:16:26 -04:00
Evan You 3d3eaeaa63 warn data field already defined as a prop 2015-09-03 15:16:26 -04:00
Evan You 9ac42746ea fragment handle attach/detach 2015-09-03 15:16:26 -04:00
Evan You 600ad90eea use fragment in partials 2015-09-03 15:16:26 -04:00
Evan You cc544c7697 coverage for v-for 2015-09-03 15:16:25 -04:00
Evan You 5157e542bb tests pass for v-for 2015-09-03 15:16:25 -04:00
Evan You e912ac4a04 v-for test wip 2015-09-03 15:16:25 -04:00
Evan You d286fdb963 tests for v-for, wip 2015-09-03 15:16:25 -04:00
Evan You 9a4f0ad89b make meta properties work 2015-09-03 15:16:24 -04:00
Evan You b9cef7c398 make sure scope work properly for components inside fast-repeat 2015-09-03 15:16:23 -04:00
Evan You 3333598a88 fix large array update regression (fix #1248) 2015-09-03 15:14:40 -04:00
Evan You 1fa16a067d Merge pull request #1245 from nkovacs/eslint-ternary
fix eslint ternary operator error
2015-09-03 11:28:19 -04:00
Nikola Kovacs b8b489efe4 Don't set up css transition callback if there's a js callback.
Fixes #1241
2015-09-03 13:14:43 +02:00
Nikola Kovacs f4d4362187 eslint's operator-linebreak rule now supports the ternary operator.
Changed the rule to match the code, and fixed the single instance
in the code that was different.
2015-09-03 12:56:07 +02:00
Evan You 5705239ab1 warn unobservable objects 2015-08-30 09:50:24 -04:00
Evan You 04fde7069f test warn duplicate object on v-repeat diff 2015-08-27 12:13:42 -04:00
Evan You 453f438995 fix unit test for track-by warning 2015-08-27 12:07:15 -04:00
Evan You 850646fc0b fix checkbox value comparison and use looseEqual in comparisons 2015-08-26 04:43:28 -04:00
Evan You 3fc91b970a computed properties should be cached by default 2015-08-25 12:21:15 -04:00
Evan You 59e2d1cf90 support using Objects as values in v-model select options (close #1115) 2015-08-24 21:21:35 -04:00
Evan You dbb3faced3 make computed property cache optional (close #1189) 2015-08-21 12:44:25 -04:00
Evan You 8ef18562ac fix resolveAsset for transcluded components in strict mode (fix #1191) 2015-08-21 12:12:26 -04:00
Evan You 68e0b35d2b also support PascalCased assets 2015-08-20 10:02:18 -04:00
Evan You b9d8ad37ce save and throw async stack trace in debug mode 2015-08-16 18:06:24 -04:00
Evan You 794214a3ff make prop watchers sync (fix #1162) 2015-08-15 14:30:36 -04:00
Evan You 68963c7cb5 improve filterBy: support array keys + filter by function (close #1094) 2015-08-13 10:42:09 -04:00
Evan You feab94f151 use Directive.on 2015-08-12 20:07:54 -04:00
Evan You 84a2c70da2 properly clean up child when switching before wait-for fires (fix #1152) 2015-08-12 15:21:40 -04:00
Evan You 59c9456ea9 v-attr should also set property for checked and selected 2015-08-12 12:41:55 -04:00
Evan You da7ac62b7c fix checkbox test 2015-08-11 22:43:19 -04:00
fergaldoyle b73e77c883 Merge branch 'dev' of https://github.com/yyx990803/vue into dev 2015-08-11 23:05:07 +01:00
fergaldoyle 722094eefc Changed checkbox -value to -exp, simplified matchValue 2015-08-11 21:49:29 +01:00
fergaldoyle b027153d4a Fix lint errors 2015-08-11 21:49:29 +01:00
fergaldoyle d3c53c4cc3 Added ability to specify custom true-value and false-value for v-model on a checkbox 2015-08-11 21:49:29 +01:00
fergaldoyle a9367d1e92 Allow exp attribute for radio input. Values saved to v-model will be the result of evaluated expression 2015-08-11 21:49:29 +01:00
Evan You 199a55fca2 rework two-way filters for v-model (close #1141) 2015-08-11 14:13:49 -04:00
karevn e829f01c87 Debounce filter & tests 2015-08-11 21:09:19 +05:00
Azamat 896cfcfa41 Support no-symbol on currency filter (closes #1131) 2015-08-10 23:28:31 +07:00
Evan You 9e25f05430 fix empty string filter args being casted into undefined (unblock #1135) 2015-08-10 12:14:38 -04:00
Evan You cef5fea7d6 just use cid as keep-alive key 2015-08-09 19:26:55 -04:00
Evan You 3c20278a0e update dev dependencies 2015-08-09 17:38:02 -04:00
Evan You b58db14146 allow wait-for to fire sync inside compiled hooks (fix #965) 2015-08-09 16:41:36 -04:00
Evan You a01f056051 handle Safari template clone bug even when nested (fix #1118) 2015-08-07 10:11:43 -04:00
Evan You 3d81980a11 support number on v-model radio (fix #1124) 2015-08-06 15:42:33 -04:00
Evan You af08256211 handle synchronous transition leave callback (fix #1117) 2015-08-04 19:14:49 -04:00
Evan You 68d37ff3af e2e test for modal example 2015-08-04 16:32:59 -04:00
kazuya kawaguchi 6a4237d5b7 remove legacy rules 2015-08-04 02:11:03 +09:00
kazuya kawaguchi f3275d14a9 fix indent lint 2015-08-04 02:10:55 +09:00
kazuya kawaguchi cdcf4f7c67 remove rules that not use in ESlint 1.0.0 later 2015-08-04 02:10:49 +09:00
Evan You c2ca3909ef template parser should trim empty textNodes from <template> nodes 2015-08-01 17:33:10 -04:00
Evan You 68ca56425c support static default option in <select> with options param (close #1103) 2015-08-01 11:53:26 -04:00
Evan You 425d4d31dc handle interpolations in <textarea> properly (fix #1109) 2015-08-01 10:50:31 -04:00
Evan You f80276395d fix v-repeat value sync for null and boolean values (fix #1108) 2015-07-31 16:07:00 -04:00
Evan You d3027a2396 do not cast empty string when initializing props (fix #1107) 2015-07-31 12:06:35 -04:00
Evan You 6d4ddd6f71 fix v-attr property setting (should be input.value only) (fix #1104 & #1105) 2015-07-31 11:28:38 -04:00
Evan You 720ac15358 fix batcher infinite update handling 2015-07-30 21:37:57 -04:00
Evan You 6c51c0a83a do not throw when component is not found (close #1099) 2015-07-30 11:07:59 -04:00
Evan You 3483db2ced compile v-if content with correct transclusion host (fix #1097) 2015-07-30 09:50:04 -04:00
Evan You 563b063eb7 better naming for internals 2015-07-29 09:29:19 -04:00
Evan You 067e1746cb fix class merging for svg elements (fix #1093) 2015-07-28 14:44:05 -04:00
Evan You 974c5c3a0c rename block instance -> fragment instance 2015-07-28 11:19:16 -04:00
Evan You 99f3774852 improve implicit fragment instance handling (fix #1084) 2015-07-27 12:20:44 -04:00
Stephen Young c84406ff15 support camelCase assets (close #1029) 2015-07-27 10:30:34 -04:00
Evan You d281abd4f6 inline repeat instances should inherit assets even in strict mode (fix #1080) 2015-07-27 10:03:48 -04:00
Evan You 8184a95b40 respect boolean prop default value (fix #1079) 2015-07-27 09:46:14 -04:00
Evan You dd986f6e53 update todomvc example 2015-07-24 12:26:49 -04:00
Evan You c5e29ab98e make class interpolation and v-class work together (fix #1065) 2015-07-23 11:01:37 -04:00
Evan You 3c04cde8e9 do not warn for absent non-required prop (close #1070) 2015-07-23 08:05:38 -04:00
Evan You 7b6913ede9 fix prop default value observing when data() is also present (fix #1071 & #1072) 2015-07-23 07:55:03 -04:00
Evan You 31fd2087b6 path parser minor tweaks 2015-07-21 05:25:54 -04:00
Evan You 149df13a3e improve path parser (fix #1063) 2015-07-21 05:19:16 -04:00
Evan You 965b61de95 allow props to expect a two-way binding type 2015-07-20 06:17:47 -04:00
Evan You 12b4ae2ad6 lazy evaluation for computed properties 2015-07-19 00:00:27 -04:00
Evan You 588b633361 support "item in array" syntax 2015-07-17 05:55:27 -07:00
Evan You 171fdc7ad5 fix $add() not triggering deep watchers for nested array objects 2015-07-16 08:53:34 -07:00
Evan You 17c372672c simplify observer self dep 2015-07-16 08:26:13 -07:00
Evan You 68bde05982 set property in v-attr 2015-07-15 02:38:52 -07:00
Evan You b4b55f1dde support prefixing props with "data-" (close #1034) 2015-07-14 08:33:49 -07:00
Evan You 17e4b33b7a strict mode 2015-07-14 08:09:02 -07:00
Evan You 5fb37fb12c support array asset syntax 2015-07-14 07:22:16 -07:00
Evan You 145fed71f9 improve prop default value handling (close #1032) 2015-07-10 12:04:32 +08:00
Evan You 0d3b26455d adjust build setup for better production minification 2015-07-08 16:47:20 +08:00
Evan You 1f77606869 respect default data value for absent Boolean prop (fix #1020) 2015-07-07 20:21:59 +08:00
Evan You 7b1c2f4872 avoid false watcher triggering on deep/Array watchers during digest (fix #1014) 2015-07-07 19:31:29 +08: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 92593255dd support frozen models (close #662) 2015-07-06 14:43:26 +08:00
Evan You 838c98afed avoid overwriting inherited properties when initializing props (fix #1012) 2015-07-06 14:19:27 +08:00
Evan You e087e586a6 fix transcluded inline v-repeat scope (fix #1010) 2015-07-06 10:15:56 +08:00
Evan You a688ea0693 increase stagger test delay multiplier (for slower ci runs) 2015-07-05 15:37:47 +08:00
Evan You 5c4c317bf3 persist select with no selected option on append (fix #1008) 2015-07-05 15:11:42 +08:00
Evan You 4a8581f3ed do not defer cleanup when unbinding component (fix #1006) 2015-07-04 02:50:00 +08:00
Evan You d07bcce0e9 support camelCase props (close #1000) 2015-07-04 01:43:45 +08:00
Evan You 12c82fe221 fix v-repeat with v-component (fix #1004) 2015-07-04 01:16:49 +08:00
Evan You 62041458e5 fix attach/ready hooks (fix #1005) 2015-07-04 00:46:19 +08:00
Evan You 9291815f85 eslint for e2e tests 2015-07-02 21:04:38 +08:00
Evan You deac205843 eslint for tests 2015-07-02 20:59:20 +08:00
Evan You 42575972ce check for all elementDirectives for fragment instances 2015-06-30 22:06:44 +08:00
Evan You 31565ccc45 improve Boolean props handling per discussions in #981 2015-06-30 02:10:17 +08:00
Evan You 39815617a4 normalize prop options at merge time 2015-06-30 01:53:15 +08:00
Evan You 47c52d6bfc support watch option alternative syntax 2015-06-28 09:24:08 +08:00
Evan You eb49441ffb test for props option alternative syntax 2015-06-28 09:07:08 +08:00
Evan You 6afe4c5af5 props default values 2015-06-26 13:27:45 -04:00
Evan You 375c823612 test for nested transclusion dirs & props compiled in correct context 2015-06-26 09:51:16 -04:00
Evan You 68bfc66792 compile container dirs and props in proper context instead of parent 2015-06-26 09:44:48 -04:00
Evan You 850a7e779b _children -> $children 2015-06-25 21:34:53 -04:00
Evan You fdd6d937d1 add tests for two-way binding with paths 2015-06-25 13:33:14 -04:00
Evan You 428bc4f72a test for wait-for static component 2015-06-24 14:09:21 -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 966c3c9fad make tests pass 2015-06-22 10:25:36 -04:00
Evan You 6a46e154e4 default replace to true 2015-06-21 19:14:38 -04:00
Evan You 2a78b90c71 tests for new partial 2015-06-21 18:03:34 -04:00
Evan You 6b7f9d9a1e bring partials back 2015-06-21 17:22:19 -04:00
Evan You 0c78d63842 make props available in created() and data() 2015-06-21 16:10:04 -04:00
Evan You 81aa6e699b fix currency filter (fix #953) 2015-06-18 11:17:57 -04:00
Evan You eabca4d8de props do not need to be in sync mode 2015-06-16 15:41:42 -04:00
Evan You 9a1eedaade warn against using built-in element as component name 2015-06-15 13:05:37 -04:00
Evan You 5e9694037c use block instance when template contains only <content> with replace:true 2015-06-15 12:08:12 -04:00
Evan You abd53e877c fix content select logic (fix #936) 2015-06-14 00:45:45 -04:00
Evan You 9fbed436a0 content selector should select all matching elements (fix part of #936) 2015-06-14 00:12:18 -04:00
Evan You 942e2bb56f auto default content insertion when no template option is provided 2015-06-14 00:07:04 -04:00
Evan You abb30eec4b support multiline expressions inside attributes (close #924) 2015-06-13 23:03:06 -04:00
Evan You d3efa2a115 tests for prop assertions 2015-06-13 23:02:59 -04:00
Evan You 775c982874 prop assertions WIP 2015-06-13 23:02:42 -04:00
Evan You a6de6e9d2a simplify prop binding modes 2015-06-13 23:02:27 -04:00
Evan You 20c334ccaa fix misc svg test in IE 2015-06-12 13:29:40 -04:00
Evan You a6c8f40273 test $data swapping for all prop types 2015-06-12 12:14:30 -04:00
Evan You 47d151b561 tests for oneway and onetime props 2015-06-12 11:12:33 -04:00
Evan You dcf5fcdfec prop: further differentiate one-time, oneway-up and oneway-down 2015-06-12 10:36:36 -04:00
Evan You 7223cf377a handle no content transclusion (fix #932) 2015-06-11 23:35:41 -04:00
Evan You 2e40791d1d fix #929 block repeat with component diffing 2015-06-11 17:21:37 -04:00
Evan You 1c18875d02 fix #928: filterBy false 2015-06-11 16:45:39 -04:00
Evan You c61bd6d1c3 handle dom edge cases 2015-06-11 05:30:33 -04:00
Evan You caca583899 let vm.$watch take an options object instead of unnamed arguments 2015-06-11 04:25:41 -04:00
Evan You c48c7098e2 support watching a function 2015-06-10 22:00:47 -04:00
Evan You a94c80b844 Observer refactor: dep.depend() 2015-06-10 21:52:40 -04:00
Evan You 7555abd427 fix template check in svg (fix #922) 2015-06-10 10:39:48 -04:00
Evan You 8c4af80cc4 remove v-callbacks in favor of the callback-prop pattern 2015-06-08 19:12:33 -04:00
Evan You c711f04d5a v-events => v-callbacks 2015-06-08 12:58:30 -04:00
Evan You 6efe10ceba add test case for passing in $data as prop 2015-06-08 00:03:36 -04:00
Evan You 6755fd9d0f still allow v-component on table elements 2015-06-07 21:34:39 -04:00
Evan You 8639749d58 Merge pull request #902 from OEvgeny/v-attr
Add objects support to v-attr
2015-06-06 13:42:38 -04:00
Евгений 93837c2310 add objects support to v-attr 2015-06-06 20:28:29 +03:00
Evan You a33d6ee36f add more test case for v-style object: falsy values 2015-06-06 12:49:39 -04:00
Evan You 109e7c7c55 v-style with object: should clear props no longer present 2015-06-06 12:31:43 -04:00
Evan You 02c6392d1d should also teardown props and replacer dirs when unlinking (fix #901) 2015-06-06 12:11:19 -04:00
Evan You 5aa5c1144f lift root compilation as per-instance so that component linkers are globally cachable 2015-06-05 15:15:57 -04:00
Evan You 3e7cb92ea6 fix + test for #893 2015-06-04 13:08:42 -04:00
Evan You 400f8bf686 refactor content transclusion 2015-06-04 10:12:37 -04:00
Evan You 5837d2fec7 increase timeout for slower browsers (ie9) 2015-06-03 21:22:59 -04:00
Evan You 842663f19c tests for staggering transitions 2015-06-03 21:18:15 -04:00
Evan You 14e01ebcff do not sync boolean literal props + cast number literal props 2015-06-03 13:36:30 -04:00
Evan You f8e98ceacf use "enter/leaveCancelled" hooks instead of returning it from enter/leave 2015-06-02 17:14:27 -04:00
Evan You b8213d8bef fix $value sync warning test 2015-06-02 16:10:10 -04:00
Evan You bcd37376e5 warn special case for v-repeat $value sync 2015-06-02 15:40:21 -04:00
Evan You 44f7a6d3a7 test for Path.set on Array 2015-06-02 13:48:36 -04:00
Evan You ba896479e2 add reject fn to async component factory 2015-06-01 20:53:10 -04:00
Evan You 4e83218c0c accept object values in v-class 2015-06-01 17:51:35 -04:00
Evan You 2a56dbb46f fix prop invalid key test case 2015-06-01 17:50:16 -04:00
Evan You 67f017f236 return object for v-ref on v-repeat with object value 2015-06-01 17:16:46 -04:00
Evan You dcbeaef028 only test composition events if not on Android 2015-06-01 16:47:16 -04:00
Evan You 949ada9cd1 copy props when replacing $data (fix vuejs/Discussion#173) 2015-05-31 22:02:10 -04:00
Evan You 5786cb1879 should warn invalid prop keys 2015-05-31 20:50:48 -04:00
Evan You 903223a764 also test dynamic get 2015-05-31 20:02:58 -04:00
Evan You 26c9255091 test for setting dynamic non-existent path 2015-05-31 19:45:10 -04:00
Evan You 34da031bdc support setting non-existent dynamic path e.g. "a[b]" 2015-05-31 19:34:05 -04:00
Evan You 70045b87b2 support using literal props on root instance 2015-05-31 17:12:14 -04:00
Evan You 50e323c760 support track-by="$index" 2015-05-30 23:53:16 -04:00
Evan You 862744cf98 test css+js mixed transition mode 2015-05-29 21:59:37 -04:00
Evan You 033efa798c ensure coverage 2015-05-29 20:56:25 -04:00
Evan You 78f3a7cbe0 test for vm.$nextTick 2015-05-29 19:58:54 -04:00
Evan You cd8a235c4d make old tests pass for transition refactor 2015-05-29 19:56:24 -04:00
Evan You 3efd76b23e share some logic between enter & leave 2015-05-29 17:42:00 -04:00
Evan You d04315e9d6 refactor filter application 2015-05-28 15:13:35 -04:00
Evan You 1c02f8c3b7 use loop for resolveAsset instead of recursion 2015-05-28 11:51:11 -04:00
Evan You 0031c60262 handle v-repeat switching between object & array (fix #869) 2015-05-27 15:56:49 -04:00
Evan You a316dfe9a4 optimize asset merging 2015-05-27 12:08:17 -04:00
Evan You c0d22e8cae simplify watcher 2015-05-26 20:55:27 -04:00
Evan You 46482c9bca add transition class for v-transition elements 2015-05-26 11:02:15 -04:00
Evan You 5dfa2f0ccd Filter syntax change
- quoted arguments are treated as plain strings
- non-quoted arguments are treated as dynamic paths
2015-05-25 18:20:00 -04:00
Evan You 5566f75782 use empty textNodes as anchors for cleaner HTML output 2015-05-24 21:21:21 -04:00
Kevin Ingersoll 008a1ecd7b Support `disabled` attribute on select options 2015-05-22 14:39:44 -07:00
Evan You 254858a870 component syntax type -> is 2015-05-22 15:45:40 -04:00
Evan You 59cf0cc36d only sync $value change inside v-repeat back to original array for primitive values (fix #853) 2015-05-20 15:35:54 -04:00
Evan You 78271e5f8a add elementDirectives 2015-05-15 13:44:27 -04:00
Evan You 70d5280faa remove v-component 2015-05-15 11:48:31 -04:00
Evan You ee2b99efd7 remove v-with 2015-05-14 14:03:49 -04:00
Evan You c02a5a9c9d remove v-partial 2015-05-14 12:31:43 -04:00
Evan You 3597675b2b rename paramAttributes -> props 2015-05-14 12:19:27 -04:00
Evan You 3959b676e2 use better warning assertions in tests 2015-05-12 23:01:16 -04:00
Evan You dffd4c7a0d tests for async components 2015-05-12 23:01:15 -04:00
Evan You d869ba0550 list items for async component tests 2015-05-12 23:01:15 -04:00
Evan You 3d9524577e fix #835 v-repeat on root node with replace:true 2015-05-12 23:00:53 -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
Evan You 08dd24f33d more test cases 2015-05-10 04:25:06 -04:00
Evan You 43ccd4c711 add test case for removing transcluded directives 2015-05-10 04:01:43 -04:00
Evan You 4c25d1eb03 add test case for container/replacer attrs with same name 2015-05-10 02:04:38 -04:00
Evan You e65c8958ab refactor component root compilation 2015-05-10 01:54:24 -04:00
Evan You e5054181aa component attr should take higher priority than placeholder attr with same name (fix #828) 2015-05-08 12:07:07 -04:00
Evan You 224d53f94d fix inline-template + v-repeat + <template> (#824) 2015-05-08 10:47:47 -04:00
Evan You 38bdbda92d fix orderBy on object-converted v-repeat using literal keys (#825) 2015-05-08 09:54:00 -04:00
Evan You a38012bf0c fix #822: v-repeat & custom element components 2015-05-07 14:45:51 -04:00
Evan You 00d423d2d9 add $set method for observed objects 2015-05-05 18:14:14 -04:00
Evan You 2d3cf2d589 do not set up watchers if v-with is bound to literal value (fix #776 & #813) 2015-04-30 14:52:13 -04:00
Evan You cee5b5769f test switching handlers for v-events 2015-04-29 10:33:20 -04:00
Evan You af0f69a512 Merge pull request #808 from dgerber/dev
let v-events accept statements
2015-04-29 10:27:45 -04:00
Evan You 4b20ad6ea9 refactor v-repeat alias/meta logic 2015-04-27 17:00:42 -04:00
Daniel Gerber 9587d1051e let v-events accept statements 2015-04-27 18:40:51 +02:00
Evan You 727f14562d support dynamic transitions 2015-04-26 20:21:14 -04:00
Evan You 5288d7f1bb support filters in partials (close #735) 2015-04-26 17:12:04 -04:00
Evan You f9f500cbda improve expression parser
- allow more use of globals such as parseInt, encodeURI...
- better warning when expression contains reserved keywords
2015-04-26 16:54:15 -04:00
Evan You e9670d59b0 fix watcher accidentally clearing watcherList on teardown (fix #806) 2015-04-25 18:07:57 -04:00
Evan You 7822d71319 make existing tests pass for 52f6d2f 2015-04-24 19:39:51 -04:00
Evan You 154c845d0a call attach/detach for dynamicly created components inside if block 2015-04-23 05:33:14 -04:00
Evan You 7b84594935 transcluded linkFns should be terminal 2015-04-23 05:33:14 -04:00
Evan You aba5228ee8 wip - current tests pass 2015-04-23 05:33:14 -04:00
Evan You 792c139491 refactor transclusion logic
transcluded contents are now marked with a "transcluded"
attribute so that the compiler knows to compile them in
parent scope. this allows proper re-compile of transcluded
blocks in conditionals (v-if and v-partial).
2015-04-23 05:33:14 -04:00
Evan You 111bcb1631 Revert inplace update in v-repeat
Inplace update is causing unwanted behavior in multiple
existing use cases, and the perf gain is not substantial
enough since the cases where it works properly are quite
few.
2015-04-21 15:58:48 -04:00
Evan You efedd6e6e5 improve v-repeat strategy check (fix #802) 2015-04-21 13:30:58 -04:00
Evan You 88c38ce86b fix v-repeat dom manipulation for block instances (fix #799) 2015-04-20 23:10:32 -04:00
Evan You d8335c25a6 fix two-way filter in attribute interpolations (fix #779) 2015-04-18 01:49:25 -04:00
Evan You 3a9bfff268 call attach/detach hooks for transcluded components inside v-if (fix #684) 2015-04-18 01:05:20 -04:00
Evan You 4983c6c9ac fix content transclusion inside v-if (fix #736) 2015-04-17 18:08:45 -04:00
Nikola Kovacs a3cdcacad4 Fix bug in <content> select.
Fallback wasn't used when none of the nodes matched by the selector
were children of the target.

refs #786
2015-04-17 09:40:27 +02:00
Nikola Kovacs cfdfda35aa <content> select should only match children.
Fixes 786
2015-04-16 18:29:05 +02:00
Evan You 1a36e39b62 allow use of global Date & new keyword inside expressions (fix #784) 2015-04-15 13:37:50 -04:00
Nikola Kovacs 676669cecd Fix nested repeats with track-by.
When the parent vm is reused, newly created children will inherit
the _reused property, and they won't be inserted into the dom.

Fixes #782
2015-04-15 17:21:09 +02:00
Evan You fc9d5cadf9 fix unit test in browser runner by including jquery 2015-04-06 19:05:19 -04:00
Evan You 0cbfe05117 simplify _.inDoc fix and remove unit test patch for phantomjs 2015-04-06 11:42:56 -04:00
Evan You e8c36e1fba sync v-repeat $value back to original object/array (fix #761) 2015-04-04 23:51:26 -04:00
Evan You 67eb247703 use element __vue__ as transition context if present 2015-04-04 22:06:51 -04:00
Evan You 9041f2f216 Merge pull request #766 from nazo/dev
fix <option value="" selected> is undefined
2015-04-04 21:38:01 -04:00
takuya sato 0f4bfb08ae fix <option value="" selected> is undefined 2015-04-05 09:47:10 +09:00
Evan You 9252b6ec35 recognize boolean literals in expression parser, fixes #715 2015-04-04 14:05:06 -04:00
Evan You c90c28a884 make test jshint pass 2015-04-04 13:50:25 -04:00
Evan You 7bed9a6d5e also support jquery input events for v-model, based on #745 2015-03-25 19:38:26 -04:00
Evan You bd47f1c71e implement inline-template param for v-component 2015-03-25 18:33:15 -04:00
Evan You 58247519a5 use inplace update for raw v-repeat 2015-03-23 01:45:38 -04:00
Evan You fdfac339b0 fix #721 support sorting by and in orderBy filter 2015-03-02 10:28:25 -05:00
Evan You 76dbdc7636 update markdown example & e2e tests for debounce 2015-02-27 14:36:40 -05:00
Evan You fdc0151067 unit test for v-model debounce 2015-02-27 14:35:52 -05:00
Evan You 6ec86ad1dc fix jshintrc for tests 2015-02-26 18:00:29 -05:00
Evan You a06c602c37 tests for jQuery change event support 2015-02-25 09:39:41 -05:00
Evan You c14410cca0 fix #655 directives on placeholders for block instances are not compiled 2015-02-24 17:56:12 -05:00
Evan You 8a02eb1e31 support slashes in component names 2015-02-23 23:42:23 -05:00
Evan You b5ac185273 v-model with only write filters should not update DOM 2015-02-22 15:27:57 -05:00
calebboyd 3ced67667b fix #712: allow filters on options expression of v-model 2015-02-21 17:44:35 -06:00
Evan You 67759d24d6 Merge pull request #720 from 44px/currency-filter
Return empty string for Infinity and properly format values such as 0.999
2015-02-21 13:06:42 -08:00
Alexander Shepelin 3e110f5a8e return empty string for infinity and properly format values such as 0.999 2015-02-21 18:51:21 +03:00
calebboyd 8de1bb8bd2 fix #717: support multiline expressions 2015-02-20 22:23:55 -06:00
Evan You 97041547f8 fix #670 honor `number` option for select with multiple attribute 2015-02-19 12:25:54 -08:00
calebboyd 7b7c2e57cf fix #707: v-repeat nested repeats on object 2015-02-09 22:40:32 -06:00
Evan You b04c209454 test for 3f943c6, also extract inDoc patch for PhantomJS tests into external file 2015-02-02 13:22:01 -05:00
Evan You 53ee3a968e simplify _children & _childCtor 2015-02-02 10:33:17 -05:00
Evan You bc254bf942 fix #657: DOM structure change in bind() should not affect compilation 2015-01-26 12:52:29 -05:00
Evan You c0726dc0d3 `number` option for v-select (fixes #642) 2014-12-22 21:32:40 -05:00
Evan You fb38b240b1 fix tests for events merge 2014-12-22 21:24:27 -05:00
Evan You df5f6409df refactor v-ref, allow use in child templates, fix #636 2014-12-16 09:09:04 -05:00
Evan You b8d4225fcc Warn against all expression errors, add "warnExpressionErros" config option.
(ref #639)
2014-12-16 08:32:17 -05:00
Evan You 15592f0043 test for v-with two way binding 2014-12-15 16:02:13 -05:00
Evan You 8a37764587 resolve js transition effect during compilation rather than at transition 2014-12-10 12:11:18 -05:00
Evan You ab254f7e8f fix v-repeat on array of arrays without identifier 2014-12-10 11:20:06 -05:00
Evan You 9013fbbe7f warn against infinite update loops 2014-12-08 18:31:01 -05:00
Evan You 0894903ec5 add warning for camelCase paramAttributes (#625) 2014-12-08 16:09:35 -05:00
Evan You 3ea564b899 fix #626 Math not recognized as global in simple path 2014-12-08 12:14:18 -05:00
Evan You 577fe08f56 remove rAF and fix tests on IE10 2014-12-07 22:26:47 -05:00
Evan You 933d4c4477 re-implement nextTick with MutationObserver 2014-12-07 22:11:02 -05:00
Evan You b8b31a0610 Imrpove v-style
- auto detect and cache prefixes
- allow both dash-case and camel-case
2014-12-07 13:50:06 -05:00
Evan You 6bc60e9f24 add v-events directive 2014-12-06 19:30:59 -05:00
Evan You bf9edefca0 Tweak parent directive compilation
- Make `this.el.__vue__` avaialable in a parent directive on the component
  container.
- Move `v-ref` compilation to parent instead of child
2014-12-06 18:47:27 -05:00
Evan You cdd1e095b5 improve watcher error messages + use debugger when debug: true 2014-12-06 18:25:26 -05:00
Evan You b2ca72a66b refactor batcher into singleton 2014-12-05 16:52:43 -05:00
Evan You 714c1a1e4e ensure user watchers are triggered after directive updates 2014-12-05 12:24:59 -05:00
Evan You 8d545dad35 refactor watcher to use an option object 2014-12-05 11:24:19 -05:00
Evan You ef286ae47c fix #618 parsing html string without tag but with enitities 2014-12-04 12:26:38 -05:00
Evan You 537fcf7684 fix v-repeat + custom element component 2014-12-02 12:50:36 -05:00
Evan You d0faa07d42 fix #615 parent not skipping paramAttributes 2014-12-02 12:16:08 -05:00
Evan You 2e816de71d fix #612 v-html treating `#` as id selector 2014-12-01 21:04:33 -05:00
Evan You f3074a1037 fix $add/$delete reserved key warning (no longer needed) 2014-12-01 20:18:43 -05:00
Evan You d0560e3a78 test for refactored component scope compilation 2014-12-01 19:49:45 -05:00
Evan You 1165cd2194 address Discussion/#96: ensure correct mixin resolution order 2014-12-01 12:46:44 -05:00
Evan You 26c9a62d74 fix #610 transclusion + partial throws error in $destroy 2014-12-01 10:39:57 -05:00
ksa 923aee6de8 Added v-style support for objects
Added v-style support for objects
2014-12-01 01:03:14 +01:00
Evan You 33dbb5e69d make deep watch traverse arrays 2014-11-30 17:34:33 -05:00
Evan You cfade3fa32 fix directive deep option test coverage 2014-11-30 14:16:22 -05:00
Evan You 1bbaab38bd add directive deep option 2014-11-30 14:08:21 -05:00
Evan You 52cdd18584 make data merge recursive (followup in #594) 2014-11-27 16:44:42 -05:00
Evan You e2fba07a13 trackby -> track-by 2014-11-26 21:25:03 -05:00
Evan You 3ae384c10d deactivate current component during v-component transitions 2014-11-26 18:46:11 -05:00
Evan You 4faf16e281 rename Binding -> Dep 2014-11-26 13:05:03 -05:00
Evan You 2eee405cc1 component wait-for & transition-mode 2014-11-26 00:39:35 -05:00