Commit Graph

1864 Commits

Author SHA1 Message Date
Hubery Liu f486ab283e misspelling (#5777) 2017-05-29 13:42:19 +08:00
Evan You 2c64dae512 update circle.yml 2016-04-20 22:44:19 -04:00
Evan You c94d04da46 warn against incorrect propsData usage 2016-04-18 13:39:25 -04:00
Evan You 9f6c23f8c4 add "propsData" option 2016-04-18 13:34:15 -04:00
Phan An a0624f4a47 Add support for decimal places in currency filter (#2676)
Currently the "currency" filter only accepts one argument: the currency
symbol. The number of decimal places is fixed as 2. This can cause
troubles with several currencies out there whose number of decimal places
can be 0 (e.g. Japanese Yen or Vietnamese Dong) or 3 (e.g. Jordanian
Dinar).
This commit modifies the filter to accept an extra optional argument:
decimal places, which defaults to 2. With this, one can write `{{ 1234 |
currency '¥' 0 }}` to properly display a Yen value. Backward
compatibility is maintained.
2016-04-18 13:23:54 -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 6bd7a9c103 deep traverse circular detection should check arrays too 2016-04-17 22:36:13 -04:00
Evan You e59b3017fe use Set in deep traverse 2016-04-17 22:32:41 -04:00
flytreeleft e314db1af1 Fix error when recursively traverse an object (#2686)
* fix 'Maximum call stack size exceeded' when recursively traverse an object

* remove semicolon

* simplify  assignment expression

* add unit test for circular references detected in Watcher#traverse
2016-04-17 00:18:17 -04:00
Evan You cfad4234dd fix :style single value test in Firefox 2016-04-17 00:17:18 -04:00
flytreeleft 1538cdda25 use absolute path to make sure running tests is OK even if it is in node_modules of other project (#2685) 2016-04-17 00:16:27 -04:00
Eduardo San Martin Morote 66ebb1782f Merge pull request #2683 from rmcdaniel/dev
Fix typo, should be transition, not v-transition
2016-04-16 19:19:40 +02:00
Richard McDaniel 8fa624463c Fix typo, should be transition, not v-transition 2016-04-16 12:00:33 -05:00
duanjun 8b847e20fc 修复ios微信中滑动导致双向绑定失效 (#2674) 2016-04-15 16:40:48 -04:00
Bill Criswell 5bd697eab9 added array with spaces test, fixed some spacing (#2678) 2016-04-15 16:40:04 -04:00
Guillaume Leclerc e3057f22b3 remove :is attribute even when component is cached (fixes #2666) (#2672) 2016-04-15 14:05:17 -04:00
Evan You 493aef04cb ensure dynamic method resolution for component inline v-on (fix #2670) 2016-04-15 00:07:13 -04:00
Evan You 767e623a9a add back support for non-standard literal keys in track-by 2016-04-14 23:23:09 -04:00
Evan You 47375c5aa6 add sauce badge 2016-04-14 18:58:58 -04:00
Evan You 4d82f6a5d3 update firebase example to use VueFire 2016-04-14 00:27:43 -04:00
Denis Karabaza 0cf2502926 Test non-prefixed attributes before prefixed (#2668) 2016-04-14 00:00:04 -04:00
Denis Karabaza f28260a580 Fix handling v-if along with v-for on a template tag (#2663)
* Fix handling multiple directives on a template tag

* Use a simpler check
2016-04-13 18:23:50 -04:00
Evan You 219b80b380 format line 2016-04-12 14:14:49 -04:00
Evan You 8971027f80 use native Set when available for tracking deps 2016-04-12 14:12:59 -04:00
eric6356 110798b248 fix key modifier filter #2658 (#2659) 2016-04-12 14:12:20 -04:00
Evan You 2fc82bf57d is attribute that are not resolved should be preserved for native custom elements (fix #2642) 2016-04-11 13:31:02 -04:00
Evan You 9d13ca3c35 fix coverage 2016-04-07 22:29:18 -04:00
Evan You 67a77d2e35 refactor v-bind:class
- revert class update mechanism due to perf regression
- normalize array of (string|object) and objects into array of strings. this
  simplifies the scenario for the rest of the code.
2016-04-07 22:26:02 -04:00
Evan You fee414f8d0 sleep before checking dist-tags in cps release script 2016-04-07 18:12:42 -04:00
Evan You 9fa4303243 [release] 1.0.21 2016-04-07 18:08:01 -04:00
Evan You 9cbcd1cd22 [build] 1.0.21 2016-04-07 18:08:01 -04:00
Evan You dfe3760d48 fix text parser regex in IE9 2016-04-07 17:58:57 -04:00
Evan You 6ac14be0fa support paths for track-by (close #2632) 2016-04-07 17:05:37 -04:00
Evan You 79442b3b5c use regex in multi-class split 2016-04-06 19:16:05 -04:00
Phan An 1ab4528ec3 Use more serious strings in tests 2016-04-06 12:52:56 -04:00
Matthew Pietz 125ea02d92 [fix] Don't remove newlines during parseText
Since `text` is being used as the key in `cache.get(text)` and the

cache is checked *before* newlines were removed, the cache would always

miss if the input `text` had *any* newlines.



I updated `tagRe` to match tags which contain newlines, and added an

extra test case to ensure newlines outside of tags are preserved
2016-04-04 16:53:39 -04:00
Denis Karabaza 0709688ac2 Default a prop before coercion
* Default a prop before coercion

* Consider defaulting a coercion too (fixes broken test)

* Add test case for coercion after defaulting
2016-04-01 17:44:04 -04:00
Evan You ef555820c9 support multiple inline sortKeys in orderBy 2016-04-01 17:39:16 -04:00
Evan You 3904c633c7 use more efficient key-flattening in filterBy 2016-04-01 17:10:17 -04:00
Evan You 35087ba47b Merge pull request #2603 from blake-newman/feature/code-of-conduct
[FEATURE] Add CODE_OF_CONDUCT.md
2016-04-01 16:08:27 -04:00
Blake Newman c51d717bd8 [FEATURE] Add CODE_OF_CONDUCT.md 2016-04-01 08:27:15 +01:00
Evan You be7339b38a Merge pull request #2585 from phanan/multiple-class-names
Support for mutiple class names as key
2016-03-31 14:52:41 -04:00
Evan You 74e594b0b9 Merge pull request #2591 from posva/feature/sort-filter
orderBy can take a Function as its first argument
2016-03-31 14:51:49 -04:00
Eduardo San Martin Morote b139f35caa orderBy can take a Function as its first argument 2016-03-31 14:15:33 +02:00
An Phan b496632118 Support for mutiple class names as key (close #2571)
This commit adds support for using multiple class names as key when
specifying a `:class` object, for example `<div :class="{ 'a b c': flag
}">`. Previously, doing so will trigger an uncaught
InvalidCharacterError, as spaces are not allowed in DOM tokens. Feature
request #2571 should also be satisfied by this commit.
2016-03-31 07:58:55 +08:00
Evan You 9ab6e2a8f1 fix user explicitly setting config.devtools (fix #2593) 2016-03-30 16:12:07 -04:00
Evan You 32b33d4f36 correct jsdoc 2016-03-30 15:58:42 -04:00
Evan You 155a8cc3f2 refactor prop handling (fix #2587) 2016-03-30 15:57:08 -04:00
Evan You de0ac5001e Merge pull request #2595 from posva/fix/orderBy-primitives
Fix/order by primitives
2016-03-30 15:19:33 -04:00
Eduardo San Martin Morote d532af71ae Fix orderBy with primitive values by passing true
Introduced by 04a213b
2016-03-30 21:09:11 +02:00