Commit Graph

866 Commits

Author SHA1 Message Date
Evan You f7a91fc9f4 build: adjust test build setup for easier requires 2015-12-26 20:02:57 -05:00
Evan You cdf233f59f transclude class merging should skip interpolated class (fix #2085) 2015-12-25 15:39:36 -05:00
Evan You 212eb80113 class interpolation should preserve transition class (fix #1960) 2015-12-23 17:05:57 -05:00
Pantelis Peslis 8f3d4f7465 Fix #2075 2015-12-23 18:44:52 +02:00
Evan You e56778a6d1 make the test a bit more fault tolerent on sauce 2015-12-17 18:06:55 -05:00
Evan You 90c92fbdb1 set property for "muted" in v-bind (fix #2042) 2015-12-17 14:35:20 -05:00
Evan You e1d6b3ede8 fire watcher on object when properties are added/deleted in non-deep mode (close #2036) 2015-12-17 11:44:21 -05:00
Evan You aec06da351 fix SVG class interpolation regression (fix #2035) 2015-12-16 11:18:06 -05:00
Evan You a51be5f9c5 warn against reserved element tags as component ids 2015-12-16 10:42:15 -05:00
Evan You 99bf444a40 fix markdown e2e test 2015-12-15 12:26:16 -05:00
Evan You bbf5e59ca6 handle v-pre on component root node (fix #2026) 2015-12-15 11:37:47 -05:00
Evan You 81d38aa1d0 avoid v-model debounce on blur (fix #2028) 2015-12-15 11:35:55 -05:00
Evan You eec2cdb04f improve template parser HTML entity regex (fix #2021) 2015-12-14 17:03:47 -05:00
Evan You afc15aa04c test case for 0efdd80 2015-12-13 12:26:39 -05:00
Evan You c6ca553bec fix IE9 className issue (fix #2001) 2015-12-10 11:50:29 -05:00
Evan You 146002a064 Merge pull request #1955 from lepture/coerce
add coerce option for component props
2015-12-10 10:31:11 -05:00
Hsiaoming Yang 3dbdf4c331 Add tests for coerce prop 2015-12-10 15:08:08 +08:00
Evan You 2b9e072d82 ensure slot compilation order inside conditional fragments (fix #1965) 2015-12-09 19:29:49 -05:00
Evan You 62229ef1d9 add warning for invalid component names (close #1997) 2015-12-09 18:32:57 -05:00
Evan You 55a56a61e5 cancel acitvate hook callback if component switches before activation (fix #1994) 2015-12-09 13:12:23 -05:00
Evan You 9edb3582b1 should fallback on default slot if no content is left (#1965) 2015-12-09 12:06:03 -05:00
Tony Georgiev a4fcc83842 Fixing Vue.$destroy(remove) does not trigger "detached" hook on second level children
Please see issue for description about the problem and what this change is supposed to fix - https://github.com/vuejs/vue/issues/1966
I know that it doesn't look good to modify tests when they fail because of a change, but I think that the lifecycle hook order should be different than what the existing test validates. The problem is again described in the issue summary
2015-12-04 23:59:43 +02:00
Evan You ad2ac5070c improve class interpoations (fix #1960) 2015-12-04 12:45:12 -05:00
rhyzx 978c86ad23 add test for $argments variable 2015-12-02 15:06:02 +08:00
Evan You e2c0cc77ff fix parsing dynamic sub path (fix #1935) 2015-11-29 12:36:47 -05:00
Evan You 5710bc2714 fix char escape in expressions (fix #1929) 2015-11-27 17:01:21 -05:00
Evan You d96031e90e remove unnecessary log method 2015-11-19 14:06:25 -05:00
Evan You 9dc0d7d87f use ES2015 + new build setup 2015-11-18 15:01:05 -05:00
Evan You 1ec2c2ad41 Revert "Reverse filters support for v1.0" 2015-11-16 11:47:20 -05:00
Evan You 904b90565b Merge pull request #1818 from karevn/dev
Reverse filters support for v1.0
2015-11-16 11:10:05 -05:00
Evan You ffe5825a0d Merge pull request #1816 from kazupon/fix/utility
fix: ocurred error in 'set' and 'delete' utility functions
2015-11-16 10:50:44 -05:00
karevn c02bdf2039 Up-ported reverse filters + for implementation 2015-11-16 20:46:24 +05:00
kazuya kawaguchi 2b79ebe418 fix: ocurred error in 'set' and 'delete' utility functions 2015-11-16 20:03:18 +09:00
Evan You ac616f6447 improve expression/path parser to handle dynamic set expressions (fix #1797) 2015-11-15 15:52:20 -05:00
Evan You 673a70fcd3 optimize moving a single item in v-for (close #1807) 2015-11-14 22:54:37 -05:00
Evan You e94b3b9363 avoid duplicate classes during transclusion (fix #1806) 2015-11-14 17:06:13 -05:00
Evan You 9a0c36e95f preserve whitespace for v-html (fix #1800) 2015-11-13 15:12:44 -05:00
Evan You bcc104789a compiler: handle adjacent text nodes, fix interpolation issues in IE 2015-11-12 15:15:56 -05:00
Evan You 8ed14c8e4b support mixed prop syntax (close #1798) 2015-11-12 11:26:43 -05:00
Justin Berger 00d11a9e0e Fixed bug when calling defineReactive on non-existent field with convertAllProperties on 2015-11-10 23:18:42 -07:00
Evan You fd196980c3 Merge branch 'dev' of https://github.com/jdavidberger/vue into getset 2015-11-10 10:46:56 -05:00
Justin Berger 7fa6faa486 Added handling and tests for nonconfigurable properties, get-only properties, and set-only properties 2015-11-10 02:30:09 -07:00
Justin Berger 9e11b62082 Made metagetter only call underlying get functions once, switched to included bind function 2015-11-09 18:09:10 -07:00
Evan You 0a76d21a19 Merge pull request #1765 from kazupon/fix/observer
Occurred TypeError in Observer.create
2015-11-09 10:47:05 -05:00
Justin Berger 2e9db42436 Made the convertAllProperties configuration option false by default 2015-11-08 18:33:31 -07:00
Justin Berger 7953f5eaa9 Added config option for working with computed properties; also changed the implementation to no longer do function calls for normal attributes 2015-11-08 17:54:07 -07:00
kazuya kawaguchi 9e103257ba observer: fix check error 2015-11-09 03:19:03 +09:00
Yuchen Wang 85b83ea015 Added letter keys filter 2015-11-08 06:08:17 +01:00
Justin Berger 0b1be55c04 Added support for properties which were created with defineProperty outside of vue 2015-11-07 17:23:53 -07:00
Evan You bcc1770a65 fix boolean prop handling (fix #1727) 2015-11-06 11:29:10 -05:00
Evan You ee5f458ca5 a more proper fix for #1683 2015-11-05 14:06:17 -05:00
Evan You 7df204e3a5 v-show: skip transition if element is detached (fix #1717) 2015-11-05 12:32:13 -05:00
Evan You d40b51b4c1 test coverage for mixed usage warning 2015-11-04 22:43:46 -05:00
Evan You 9a66ece882 simplify IE bind attr workaround by adjusting check order 2015-11-04 19:39:16 -05:00
Evan You 23db8bb2bf fix lint and test coverage 2015-11-04 15:08:22 -05:00
Evan You d7ef64363f Merge pull request #1699 from Mat-Moo/dev
Add offset facility to limit filter aka mysql limit
2015-11-04 15:02:28 -05:00
fergaldoyle 1f7a45a383 Merge remote-tracking branch 'upstream/dev' into dev 2015-11-04 19:07:52 +00:00
Evan You 7244c6997b fix literal casting in compilation 2015-11-04 11:24:00 -05:00
Evan You fbfcfccc9f fix v-ref for dynamic components with keep-alive (fix #1695) 2015-11-04 10:50:15 -05:00
fergaldoyle 1d85fcbd35 IE should prefer all bound props other than class 2015-11-04 15:12:01 +00:00
Mat-Moo 7f3582731e Add offset facility to limit filer aka mysql limit 2015-11-04 10:38:18 +00:00
Evan You 8def6c7400 prop watchers should be triggered on reference change only (fix #1683) 2015-11-03 12:57:38 -05:00
Evan You 296ed695d8 hoist refs at compile time so that they are properly reactive (fix #1671) 2015-11-02 14:01:52 -05:00
Evan You 5b809fdaf6 fix v-for parent scope $els test in IE9/10 2015-10-31 16:34:52 -04:00
Evan You 778734aa88 better warning for fragment instance attributes 2015-10-30 11:09:48 -04:00
Terence Zhong 48a6c03d13 v-for: support access for parent scope's $refs and $els in for context. 2015-10-30 18:45:03 +08:00
Evan You 1e575a75e2 v-bind should be in deep mode when used on objects for class, style and attributes 2015-10-29 10:18:12 -04:00
kazuya kawaguchi 685519859d fix dynamic attribute on custom directive 2015-10-29 19:45:28 +09:00
Evan You 14a1fb48d8 add test for directive literal number arg + limitBy with v-for 2015-10-28 22:08:48 -04:00
Evan You d9fa2b47b1 support objects in v-bind 2015-10-28 15:47:35 -04:00
Evan You ca6934dba3 add limitBy filter 2015-10-28 14:08:41 -04:00
fergaldoyle 0061846347 Added title prop test 2015-10-28 17:34:51 +00:00
Evan You 27bb331169 fix filterBy multiple keys (fix #1479) 2015-10-27 15:23:49 -04:00
Evan You 296dc7854d fix array asset component name check 2015-10-27 10:08:30 -04:00
Evan You 9ec5cd348a improve test for (index,val) syntax 2015-10-26 22:03:23 -04:00
Evan You 5669411445 add hooks for devtools 2015-10-26 21:02:16 -04:00
Evan You 329987cf0d fix :class binding array syntax cleanup (fix #1458) 2015-10-22 14:36:57 -04:00
Evan You 940555f6eb dom: simplify fragment insertion/removal 2015-10-21 14:06:13 -04:00
Evan You d1ab4245eb v-on: support modifiers without expression (close #1451) 2015-10-20 21:19:52 -04:00
Evan You 4e3fb0da17 Directive: use new params API 2015-10-20 17:51:25 -04:00
Evan You 9c45702c65 fix: compile container directives in correct context (fix #1442) 2015-10-19 08:08:31 -04:00
Evan You e12d4071c5 chore: update repo links 2015-10-18 00:13:32 -04:00
Evan You 42e7a8e6f1 test: improve v-for key val syntax test 2015-10-17 23:55:33 -04:00
vprimachenko 588d66f73a add unit tests for `(key,val)` syntax of `v-for` 2015-10-17 23:55:27 -04:00
Evan You e879b8fa0d v-for: call detached hook for instances in removed fragments (fix #1440) 2015-10-17 22:19:26 -04:00
Evan You 02655cd931 props: adjust props merging strategy (fix #1431) 2015-10-16 21:53:10 -04:00
Evan You deb43a8fca assets: standardize "name" usage 2015-10-13 23:49:16 -04:00
Evan You 9209c8382f test: fix e2e test for examples 2015-10-13 17:55:12 -04:00
Evan You 98e16a0f40 v-bind: use less aggressive interpolate warning check (close #1413) 2015-10-11 22:34:18 -04:00
Evan You ebb99df5d7 orderBy: change reverse argument check 2015-10-09 17:07:29 -04:00
Evan You 5b61b199f6 compiler: properly expose modifiers to directives (fix #1399) 2015-10-09 13:07:19 -04:00
Evan You a0fa04d513 transition: use more reliable hidden check (close #1398) 2015-10-09 11:24:29 -04:00
Evan You 539b107b79 config: remove proto option 2015-10-08 17:35:46 -04:00
Evan You 2350a011cb fix test coverage 2015-10-07 11:58:22 -04:00
Evan You 74a6b0110d lifecycle api: deprecate $addChild() in favor of `parent` option 2015-10-05 17:41:15 -04:00
Evan You bd7ff4ef48 test: warn directives on fragment instance 2015-10-05 16:52:18 -04:00
Evan You 3ff16df808 v-for: update primitive values update strategy 2015-10-05 16:46:59 -04:00
Evan You b6cceaadb1 deprecate $set and $delete on objects, use Vue.set/delete instead 2015-10-03 17:09:46 -04:00
Evan You 03b9d41574 v-for: no longer pre-convert values into arrays before piping it through filters 2015-10-03 13:34:53 -04:00
Evan You 17833f9c79 v-bind: do not remove input value attributes 2015-10-02 18:21:22 -04:00
Evan You 4f9b888078 test: fix v-on .prevent modifier tests in IE 2015-10-02 16:07:03 -04:00
Evan You d0c916fd9e v-on: support .stop and .prevent modifiers 2015-10-02 15:17:13 -04:00
Evan You e421cb6042 props: call default value functions with vm as the context (close #1382) 2015-10-02 11:53:10 -04:00
Evan You 82eed21e40 test: update v-model when bind value change 2015-10-01 12:03:08 -04:00
Evan You 6782d108d5 test: v-model checkbox array model 2015-10-01 01:03:43 -04:00
Evan You c427029b64 array.$remove: always remove by searching for item 2015-09-30 23:31:47 -04:00
Evan You b4a3a63fb7 $dispatch: should also trigger event on self 2015-09-30 22:18:46 -04:00
Evan You 3f3b612905 partial: fix dynamic partial scope issue (fix #1363) 2015-09-27 12:16:40 -04:00
Evan You ab2ff32a88 allow empty/falsy values in v-bind:class array syntax 2015-09-27 11:41:44 -04:00
Evan You c6855009cb fix attribute interpolation tests in IE10/11 2015-09-25 16:48:02 -04:00
Evan You 9facca5c9c events: fix propagation - should propagate when there are no callbacks on current instance 2015-09-25 15:44:20 -04:00
Evan You 78d6abe94b tests for attribute interpolation 2015-09-24 22:06:00 -04:00
Evan You 832f6889a2 vm.$watch: support filters 2015-09-23 22:50:33 -04:00
Evan You 92a62e8c2f $interpolate: coverage + cast to string on single token 2015-09-23 15:45:34 -04:00
Evan You f46e516907 directive parser: fix reserved arg handling 2015-09-23 11:03:27 -04:00
Evan You 56f80aac7a global api: add mixin method 2015-09-23 10:32:55 -04:00
Evan You 9fc006871c _.attr: make it more generic 2015-09-22 13:08:21 -04:00
Evan You c350b76efb support v-else for v-show 2015-09-22 13:00:13 -04:00
Evan You b91b3759b1 fix compile test case in IE 2015-09-21 15:05:20 -04:00
Evan You b36397b0de use new modifier syntax 2015-09-19 17:01:27 -04:00
Evan You 5574af3da1 fix coverage 2015-09-19 16:53:14 -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 a9c354ec77 template parser: improve HTML entity regex (fix #1330) 2015-09-17 10:23:02 -04:00
Evan You 31757569b9 change two-way binding indicator from @ to & 2015-09-15 22:56:42 -04:00
Evan You 4236c53740 unit tests pass 2015-09-15 22:50:20 -04:00
Evan You 7f7df413a4 fixing unit test for new syntax (wip) 2015-09-15 22:27:08 -04:00
Evan You cb36567622 update directive test file location 2015-09-15 22:16: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 7a63cb0317 allow configuring unsafeDelimiters separately 2015-09-11 12:06:30 -04:00
Evan You aa566da1ae support new child component ref syntax 2015-09-11 11:32:00 -04:00
Evan You 2ad9554b3f support new element ref syntax 2015-09-11 11:15:45 -04:00
Evan You bab97fd385 move component to internal directives 2015-09-11 11:12:01 -04:00
Evan You de987d4e8a use new prop binding type indicator syntax 2015-09-11 01:09:07 -04:00
Evan You 5cf33aeb37 support "is" on any element 2015-09-11 00:55:29 -04:00
Evan You d0241f257b use #= instead of .= for literal directives 2015-09-10 18:46:58 -04:00
Evan You 534e12d15c support v-else (close #1290) 2015-09-10 18:44:34 -04:00
Evan You 59b364a266 fix slot fallback content scope inside v-for (fix #1282) 2015-09-09 11:15:19 -04:00
Evan You 8d6d010964 do not remove slot attribute (close #1281) 2015-09-09 11:00:23 -04:00
Evan You 145b0f5da9 fix eslint warning 2015-09-08 11:53:30 -04:00
Evan You a8cb8152ee fix slot compilation scope inside v-for (fix #1268) 2015-09-08 11:51:42 -04:00
Evan You a95db2eb03 remove unobservable object warning 2015-09-08 11:18:16 -04:00
Evan You 00568ce251 warn v-for filters that do not return Arrays 2015-09-07 15:51:45 -04:00
Evan You 2d6e50e5aa use - instead of : for key filters 2015-09-06 22:34:00 -04:00
Evan You c113b85655 support .= literal syntax 2015-09-06 22:31:08 -04:00
Evan You 737a85de88 remove literal directive concept 2015-09-05 22:14:18 -04:00
Evan You e8d8ed790e fix prop filter test 2015-09-05 21:37:05 -04:00
Evan You d8d55858be include computed properties in vm.$log() (close #1251) 2015-09-05 21:35:59 -04:00
Evan You 56788288bf support array of objects in style binding 2015-09-05 21:35:53 -04:00
Evan You 6df94468b4 support filters in props 2015-09-05 21:35:41 -04:00
Evan You 7868fbc23a complete unit test fixes 2015-09-04 10:58:05 -04:00
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