Commit graph

554 commits

Author SHA1 Message Date
Leo Horie
693c87f5f1 fix svg class updates 2016-06-07 20:20:30 -04:00
Leo Horie
6ff63b224c expose m to window 2016-06-07 10:57:20 -04:00
Leo Horie
4b6c4254ba s/shouldUpdate/onbeforeupdate 2016-06-06 09:59:35 -04:00
Leo Horie
ddc430a6d3 fix most gcc warnings 2016-06-03 23:55:31 -04:00
Leo Horie
ca784a684e fix svg across component boundaries 2016-06-03 12:27:24 -04:00
Leo Horie
f9ef480b34 fix bugs about recycling in components, and styles when reusing style object 2016-06-02 21:42:18 -04:00
Pat Cavit
da8018b441 Re-generate bundle (#1085) 2016-05-31 17:12:31 -07:00
Leo Horie
477e73f300 prop and withAttr work in progress 2016-05-21 01:48:11 -04:00
Leo Horie
e1473dcce8 fiddling w/ bundled var names 2016-05-21 01:20:54 -04:00
Leo Horie
9b602edf4e create only one renderer 2016-05-21 00:59:33 -04:00
Leo Horie
749b952392 clean up index.js 2016-05-21 00:48:58 -04:00
Leo Horie
acd9d5b641 Merge branch 'bundler-fix' into rewrite
Conflicts:
	api/mount.js
	api/router.js
	api/tests/test-router.js
	index.js
2016-05-20 22:45:51 -04:00
Leo Horie
e5391a1957 bundler variable disambiguation 2016-05-20 22:38:10 -04:00
Leo Horie
977239d207 rename limiter to throttle and refactor
- don't inject raf/setTimeout since we can't really mock them w/ a good degree of timing accuracy anyways

fix some unrelated tests
2016-05-19 23:24:04 -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
13fdb60f66 clean slate 2016-04-20 20:01:04 -04:00
Leo Horie
f226d56481 Merge remote-tracking branch 'origin/next' into next 2016-04-20 00:36:48 -04:00
Leo Horie
da586de7dc don't swallow runtime errors in request 2016-04-20 00:35:53 -04:00
robinchew
4308b182ca Traceur Support
traceur --script mithril-v0.2.3.js code-that-calls-m.js
2016-04-15 03:10:50 +08:00
Leo Horie
cb966d9088 don't throw reference error if event is synthetic and forgets to pass e arg 2016-04-13 15:32:58 -04:00
impinball
a07483a164 Actually lint core, regenerate minified files 2016-03-28 07:54:26 -04:00
Isiah Meadows
8f348435e4 Merge pull request #1002 from isiahmeadows/arg-fix
Serialize arguments correctly in m.component
2016-03-28 06:37:17 -04:00
impinball
07244b1999 Serialize arguments correctly in m.component 2016-03-28 06:28:51 -04:00
yuyang
82d65b076a change new Array => [] 2016-03-25 12:47:03 +08:00
Leo Horie
fcf6e16929 Merge pull request #975 from barneycarroll/empty-attrs-string
Empty attributes. Fixes #971
2016-03-19 22:36:32 -04:00
Isiah Meadows
806e0a8dc1 Merge pull request #973 from isiahmeadows/lint
Make linter happy with mithril.js
2016-03-17 23:56:13 -04:00
Leo Horie
64d1ce1d7d Merge branch 'next' of github.com:lhorie/mithril.js into next 2016-03-16 01:07:07 -04:00
Leo Horie
96bf37588b trailing semi-colon 2016-03-16 01:06:35 -04:00
Pat Cavit
eac505aead Use for-loop to map arguments instead of slice
http://jsperf.com/arguments-slice-vs-for-loop-copy
2016-03-09 14:33:52 -08:00
Barney Carroll
10f30dfa2e Remove redundant logic as per @niothiel's tip 2016-03-03 15:26:09 +00:00
Carroll
ea946f1a0e Empty attributes. Fixes #971 2016-03-03 10:27:26 +00:00
impinball
9d02042d78 Make linter happy with Mithril.js 2016-03-02 16:27:08 -05:00
Leo Horie
79665d46f4 fix version string 2016-03-02 16:16:33 -05:00
Leo Horie
3aa3545236 Merge branch 'next' of github.com:lhorie/mithril.js into next 2016-02-25 20:27:06 -05:00
Leo Horie
58ef29e8d5 #931 prevent unloaders from being registered more than once 2016-02-25 20:27:01 -05:00
mar
3f09713583 Use object lookup instead of long condition chain 2016-02-18 19:55:37 +00:00
mar
01ff1a36fd Use object lookup instead of long RegExp
Should be faster.
2016-02-18 19:47:38 +00:00
mar
3e4af6ff22 Use Array#slice to convert arguments to Array 2016-02-18 19:16:32 +00:00
mar
74062cda29 Parameterize URLs with a single String#replace 2016-02-18 18:53:45 +00:00
Már Örlygsson
7a184cb3b7 Use RegExp#test instead of String#match
Using `.test()` is both faster and more explicit.
2016-02-18 18:44:16 +00:00
Leo Horie
0682932f63 remove is attribute regular element creation 2016-01-29 16:27:09 -05:00
Leo Horie
4f0d479ee7 Merge branch 'lint' of https://github.com/isiahmeadows/mithril.js into isiahmeadows-lint
Conflicts:
	mithril.js
	tests/mithril-tests.js
2016-01-28 18:40:19 -05:00
Leo Horie
baa55cd262 fix onunload typo 2016-01-28 18:30:14 -05:00
Leo Horie
6b7ac83dde Merge branch 'next' of github.com:lhorie/mithril.js into next 2016-01-27 11:22:26 -05:00
Leo Horie
3de5cb8aaf allow string keys 2016-01-27 11:22:01 -05:00
impinball
0766d93bac Lint Mithril itself 2016-01-22 16:25:55 -05:00
Jeff Shen
567d9ebd15 Cleaned up comment on line 557
Fixed subject-verb agreement
2016-01-21 14:53:44 -08:00