Commit graph

1092 commits

Author SHA1 Message Date
Leo Horie
3a367eb279 Merge branch 'next' of https://github.com/venning/mithril.js into venning-next
Conflicts:
	mithril.js
2015-07-23 21:52:05 -04:00
Leo Horie
b0c876f57b Merge pull request #729 from impinball/speed
Profile and optimize
2015-07-23 21:28:42 -04:00
impinball
986dde6d5f Merge remote-tracking branch 'upstream/next' into speed, unfix "fixed" version
By "fixed", I mean "screwed up, not at all following the correct version
number, and refusing to ask on Gitter what the correct version really is, and
just assuming the wrong version despite hints all over the source screaming
'THIS IS THE CORRECT VERSION, YOU STUPID IDIOT!!!'".

I feel that should be a relatively accurate explanation of the mistake I made
while working on this patch (the specific commit that introduced it was
squashed in rebasing, and another commit was easier than a revert, since the
one that introduced it also entailed a few other things).
2015-07-23 05:26:31 -04:00
impinball
3de01a1554 Clean up tests, resolve style differences, reduce upstream diff
This is in preparation for a PR, to reduce potential for merge conflicts
with either my PR or others', since mine will modify a large amount of
the main file.
2015-07-23 05:25:18 -04:00
impinball
565f9cf334 Merge branch 'next' of https://github.com/impinball/mithril.js into speed
(Update topic branch)
2015-07-23 05:20:36 -04:00
impinball
9ae592ee4d Do some local style modifications and profile.
1. Do some temporary style modifications to help make the code more readable
   for profiling (with help from ESLint).
2. Profile the code, and optimize accordingly.
2015-07-23 05:17:02 -04:00
Leo Horie
952885d74f Merge pull request #725 from milesmatthias/next
added version function to mithril and test for version function
2015-07-17 09:42:07 -04:00
Miles Matthias
d2812bd88d added version function to mithril and test for version function 2015-07-16 22:11:07 -06:00
Leo Horie
aeedc6fbb0 Merge pull request #720 from impinball/next
Forgot to assign the default argument
2015-07-14 19:15:38 -04:00
Leo Horie
7732f28cad style 2015-07-14 19:11:45 -04:00
Leo Horie
dcbb82f7d2 Merge remote-tracking branch 'origin/next' into next 2015-07-14 19:11:31 -04:00
Leo Horie
6040a4dc67 prevent null ref 2015-07-14 19:11:11 -04:00
Leo Horie
3894ec683c make controller inherit from prototype if in m.component 2015-07-14 19:10:12 -04:00
Leo Horie
ec1da49fa7 Merge pull request #711 from impinball/ts
Strengthen TS types, add documentation comments, remove diff noise.
2015-07-13 21:20:23 -04:00
Leo Horie
637376066e Merge pull request #717 from steenzout/next
rephrase sentence on web services doc
2015-07-13 21:19:12 -04:00
impinball
fcb5842938 Fix default assign 2015-07-13 15:12:25 -04:00
impinball
a22710284e Fix default assign 2015-07-13 15:00:10 -04:00
impinball
a4e6567b82 Forgot to assign the default argument 2015-07-13 14:53:26 -04:00
Pedro Salgado
3c478fa225 rephrase sentence. 2015-07-13 10:47:22 -06:00
Leo Horie
db56f9b635 Merge pull request #713 from impinball/names
Shorten some code, allow the JIT to optimize critical methods.
2015-07-10 14:33:21 -04:00
impinball
c0830ee3d6 Refactor a couple pointless variables out 2015-07-10 13:15:03 -04:00
impinball
83a30a4d3c Add type-checking methods, make a few things stop de-opting under Chrome 2015-07-09 15:31:13 -04:00
impinball
b28045aa60 Add parameter names to m.route 2015-07-09 14:19:47 -04:00
impinball
293df33858 Dry up code in build 2015-07-09 14:10:59 -04:00
impinball
c764f8d826 Use named arguments in m 2015-07-09 13:17:33 -04:00
impinball
51f59419b2 Strengthen types, describe API in TypeScript file 2015-07-09 09:41:15 -04:00
impinball
d4848c0379 Remove trailing whitespace 2015-07-09 03:38:42 -04:00
Leo Horie
34020b1f23 Merge pull request #708 from impinball/patch-1
lhorie.github.io/mithril -> mithril.js.org
2015-07-07 21:05:50 -04:00
impinball
fab8321d5f lhorie.github.io/mithril -> mithril.js.org 2015-07-07 20:30:46 -04:00
Leo Horie
1aa3057fed Merge pull request #707 from pelonpelon/patch-17
components.md - eliminate global variable introduced in previous commit
2015-07-07 15:56:34 -04:00
Leo Horie
9da3adaf3d Merge remote-tracking branch 'origin/next' into next 2015-07-07 13:19:00 -04:00
Leo Horie
55aedaabbc fix gzip size in docs 2015-07-07 11:41:47 -04:00
pelonpelon
dc36588160 components.md - eliminate global variable introduced in previous commit
Oops!
2015-07-07 09:04:08 -05:00
Leo Horie
4b2ec49ca9 Merge pull request #636 from pelonpelon/patch-9
Update components.md -- "Classic MVC" example broken
2015-07-06 21:28:44 -04:00
Leo Horie
074a59791f Merge pull request #704 from pelonpelon/patch-16
Help users find documentation on unmounting components
2015-07-06 21:26:14 -04:00
pelonpelon
648343c01c Help users find documentation on unmounting components
It's a common question on Gitter: How do I unmount a component?
Presently this Google Search: `unmount site:http://lhorie.github.io/`
returns one result: `mithril.route.html` -- I have no idea why, there's no "unmount" on the page.

Adding the words unmounting and unmount to this doc page will make them discoverable directly and through Google.
2015-07-02 18:54:59 -05:00
Leo Horie
fe7d0b6c9f fix select2 example 2015-06-29 18:59:41 -04:00
Leo Horie
919f443099 simplify condition 2015-06-29 09:35:04 -04:00
Leo Horie
dbc3bc81e4 Merge pull request #692 from pelonpelon/patch-15
mithril.js: fix if clause that expects truthy value. issue: #689
2015-06-29 09:34:52 -04:00
Leo Horie
8da643c13f use bracket syntax for reserved keyword 2015-06-29 09:22:20 -04:00
pelonpelon
72b705b918 mithril.js: fix if clause that expects truthy value. issue: #689
When key=0 the if statement doesn't do what is intended.
2015-06-25 18:25:49 -05:00
Leo Horie
505d7b930d #686 prevent redraw lock on error 2015-06-23 13:43:54 -04:00
Leo Horie
04911d38a5 Merge remote-tracking branch 'origin/next' into next
Conflicts:
	mithril.js
2015-06-23 13:38:31 -04:00
Leo Horie
86a3605000 Merge pull request #685 from adamvlasak/semicolons
fixed missing semicolons
2015-06-23 13:01:36 -04:00
Leo Horie
1e0ad6c3d7 ensure we can still redraw after a promise error that gets thrown by the exception monitor 2015-06-22 18:41:53 -04:00
Adam Vlasak
fe7683fce8 fixed missing semicolons 2015-06-20 19:19:54 +02:00
Leo Horie
955f3d9571 Merge pull request #678 from venning/function
Consistency: use variable instead of literal
2015-06-19 13:21:46 -05:00
Christopher Venning
05e6088f13 Consistency: use variable instead of literal 2015-06-18 17:19:15 -04:00
Christopher Venning
98e945598d Merge branch 'next' of https://github.com/lhorie/mithril.js into next 2015-06-18 17:12:48 -04:00
Leo Horie
5cfcbfe431 Merge pull request #671 from venning/docs
Fixed typos in doc links
2015-06-17 08:08:41 -05:00