Pat Cavit
8450ca5d91
Add ESLint and a generated config/ignore file
...
Manually changed some rules to better match @lhorie's style and reduce #
of errors from ESLint.
2016-05-19 12:37:33 -07:00
Leo Horie
e8755c11c7
Merge pull request #1056 from tivac/api-tests
...
Public API tests
2016-05-19 15:06:53 -04:00
Pat Cavit
da6b697d19
spaces -> tabs
2016-05-19 11:57:41 -07:00
Pat Cavit
9f1afea9e1
Match @lhorie style
...
I don't usually write JS w/o semicolons, so no surprise I got this wrong
at first.
2016-05-19 11:53:41 -07:00
Pat Cavit
36bfc6892b
Fix var shadowing infinite loop bug in browsers
2016-05-19 11:52:14 -07:00
Pat Cavit
749ff74bea
Test both async types when using router
2016-05-19 11:35:45 -07:00
Pat Cavit
37b0ce20c5
Add missing dependencies
2016-05-19 11:08:26 -07:00
Pat Cavit
74f3e0d205
Remove old manual testing file
2016-05-19 10:59:41 -07:00
Pat Cavit
282cc5afdd
Fix m.route() tests
...
- Wasn't calling route.prefix(), was assigning to it
- Needed to handle pushstate prefix (`""`) specially in assertions
2016-05-19 10:59:41 -07:00
Pat Cavit
41b24b998a
m.route tests should run against all prefixes
...
Also tests `router.link` now. Had to add a `preventDefault` function to
domMock events that doesn't do anything, that may need a more-complete
implementation someday?
2016-05-19 10:59:41 -07:00
Pat Cavit
89dfd6e97d
Remove unused reference
2016-05-19 10:59:41 -07:00
Pat Cavit
ce42adb720
Basic router tests
2016-05-19 10:59:41 -07:00
Pat Cavit
8f7cc0cb11
Stricter
2016-05-19 10:59:41 -07:00
Pat Cavit
fc481ff497
strict all the things
2016-05-19 10:59:41 -07:00
Pat Cavit
0cf509f674
Add forcing support and improve tests
...
Also verify that we're using tabs, whee.
2016-05-19 10:59:41 -07:00
Pat Cavit
86ce23a2bd
Fix bundler w/ relative paths from sub-dirs
2016-05-19 10:59:41 -07:00
Pat Cavit
960812308c
Move public APIs into their own folder
...
And start writing actual tests for them
2016-05-19 10:59:41 -07:00
Pat Cavit
724361af6a
Filter out util dirs from istanbul coverage reports ( #1055 )
2016-05-19 10:57:17 -07:00
Pat Cavit
629ba5b62a
Add cover command ( #1054 )
...
Using istanbul, and also adding a .gitignore so I can be lazier about things when committing.
2016-05-19 10:31:09 -07:00
Leo Horie
60171f503d
fix input cursor placement in chrome
2016-05-19 02:22:00 -04:00
Leo Horie
e24e4e9a1a
style fixes in docs
2016-05-19 01:46:46 -04:00
Leo Horie
cd8b8b12e6
Some documentation
2016-05-19 01:22:01 -04:00
Leo Horie
9bc6a64798
increase timeout threshold because 20 is too close to frame budget @ 60fps
2016-05-19 01:21:07 -04:00
Leo Horie
b4903538f3
prevent recycling for vnodes w/ integration methods
2016-05-19 01:20:21 -04:00
Leo Horie
73cfe3dd7a
Merge pull request #1047 from tivac/raf
...
[rewrite] Rate limit re-renders w/ m.mount/m.route
2016-05-17 19:22:10 -04:00
Pat Cavit
df233c02ed
spaces -> tabs
2016-05-17 14:53:33 -07:00
Pat Cavit
db609b9142
Frame-rate limiter for m.mount/m.route
2016-05-17 14:49:48 -07:00
Leo Horie
5ec06e7c08
init state, fix examples
2016-05-15 11:14:38 -04:00
Leo Horie
5265697cb2
semi-working bundle
2016-05-14 01:01:35 -04:00
Leo Horie
41cfda2719
more component lifecycle tests
2016-05-13 07:03:01 -04:00
Leo Horie
d8a402f4f5
utf-8 handling in router
2016-05-13 07:02:32 -04:00
Leo Horie
f4c1d4a998
cleanup and styling
2016-05-11 11:52:41 -04:00
Leo Horie
76818dab24
Merge pull request #1041 from gyandeeps/patch-1
...
Fix: For css class addition to svg elements
2016-05-11 11:49:55 -04:00
Gyandeep Singh
f1f77c80b3
Fix: For css class addition to svg elements
2016-05-11 10:47:13 -05:00
Leo Horie
19259faedc
Merge pull request #1042 from StephanHoyer/patch-1
...
And mithril 0.2.x dbmon example link for comparison
2016-05-11 09:31:37 -04:00
Stephan Hoyer
efd7da4649
And mithril 0.2.x dbmon example link for comparison
2016-05-11 09:35:49 +02:00
Leo Horie
3666aa747e
Merge pull request #1027 from tivac/legacy-dbmon
...
Add mithril@0.2.x version for comparison
2016-05-10 10:29:19 -04:00
Leo Horie
d5371533a7
fix attribute syncing for input, select, textarea
...
optimize events
2016-05-10 01:55:48 -04:00
Leo Horie
4a215a2815
Merge pull request #1035 from avlcodemonkey/rewrite
...
Set value of a select after children are created.
2016-05-10 00:27:28 -04:00
Leo Horie
b17bd250b7
support all events
2016-05-06 10:11:31 -04:00
Leo Horie
88e5724abd
Merge branch 'rewrite' of github.com:lhorie/mithril.js into rewrite
2016-05-05 23:20:47 -04:00
Leo Horie
ead2e8ac0b
shouldUpdate, component oninit order fix
2016-05-05 23:20:31 -04:00
Isiah Meadows
73a2ee13ca
Merge pull request #1038 from barneycarroll/patch-2
...
onremove order and description
2016-05-05 09:55:50 -04:00
Barney Carroll
310c8a09a5
onremove order and description
2016-05-05 14:39:47 +01:00
Leo Horie
875984c177
update lifecycle method descriptions
2016-05-04 15:06:11 -04:00
Leo Horie
a61be6f41d
Merge pull request #1036 from tivac/lifecycle-states
...
Added lifecycle method descriptions
2016-05-04 14:28:16 -04:00
Pat Cavit
70cad6d5b3
Added lifecycle method descriptions
2016-05-04 11:18:13 -07:00
Leo Horie
d61a6169ea
fix submission
2016-05-04 13:45:42 -04:00
Leo Horie
965f700cc4
remove dead code
2016-05-04 00:36:18 -04:00
Leo Horie
d78084ab90
example cleanup
2016-05-04 00:34:59 -04:00