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
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
Leo Horie
e32f37c523
Merge pull request #923 from iamjohnlong/safari-createContextualFragment-fix
...
Moves createContextualFragment into try/catch function
2016-01-10 10:32:10 -05:00
Joshua Kifer
886d796e0b
Fixed setAttributes for custom components (like Polymer uses) with readonly properties
2016-01-05 11:53:01 -08:00
John Long
0b9cbd1f82
Moves createContextualFragment into try/catch function
2016-01-05 12:20:40 -07:00
Leo Horie
871e32fca3
Merge branch 'route-shift-key' of https://github.com/tobscure/mithril.js into tobscure-route-shift-key
...
Conflicts:
mithril.js
2015-12-21 09:32:47 -05:00
Leo Horie
309f2d561d
Merge branch 'Subtree-retain-fix' of https://github.com/dhinesh03/mithril.js into dhinesh03-Subtree-retain-fix
2015-12-20 19:09:24 -05:00
Leo Horie
270b20a2b0
v0.2.2-rc.1
2015-12-20 09:14:28 -05:00
Sean Hussey
c1912d2726
Fixing a few typos. Changing all instances of "thennable" to
...
"thenable". No functional changes.
2015-12-18 14:40:41 -05:00
impinball
7f7a0a3815
Remove unused parameter
2015-12-16 12:24:12 -05:00
impinball
565ca32d9a
Fix issue with a placeholder
2015-12-16 11:54:34 -05:00
impinball
1b4737b0c6
Rewrite most of the last commit of #887 (without the m.request bug)
2015-12-16 11:22:11 -05:00
impinball
69836f3811
Small performance improvements (part 1)
2015-12-16 10:51:43 -05:00
impinball
75a3f0785c
Revert "Few more small performance tweaks"
...
This reverts commit 0e00621840 .
2015-12-16 10:37:12 -05:00
impinball
0e00621840
Few more small performance tweaks
2015-12-15 16:56:04 -05:00
impinball
20c3bf07f0
Merge branch 'next' of https://github.com/lhorie/mithril.js into speed
2015-12-15 12:26:07 -05:00
impinball
0b21bd2bda
Improve performance (part 2), make smaller, other fixes
...
Or, a lot of things yet again.
1. Prototypes are avoided. Method definitions are avoided at all costs in the
renderer. C-like structs are exclusively used internally. This helps
significantly in both speed and size.
2. The deferred implementation had a couple functions refactored into static
equivalents.
3. Only 1 test fails now.
4. Several names were changed to be much smaller. Some of the exports were
aliased. This was a pure size improvement for free.
5. Regexes are inlined. It's better to let the engine do the caching.
6. The version string was inlined. It's still at the top.
7. `this` is avoided as much as possible in the rendering.
2015-12-15 12:22:02 -05:00
Isiah Meadows
b08dba8ad1
Merge pull request #816 from ikki3355/next
...
links "config" ed with route need to reset pendingRequests count to zero on click
2015-12-15 11:12:49 -05:00
impinball
0a744f6387
Merge branch 'next' of https://github.com/lhorie/mithril.js into speed
2015-12-15 07:10:40 -05:00
impinball
a7b2294c11
OO-ize DOM builder, improve performance (part 1), add benchmarking suite
2015-12-15 07:07:50 -05:00
impinball
9428fe729c
s/fufill/resolve/
2015-12-15 06:38:10 -05:00
impinball
70d2734a58
Merge branch 'next' of https://github.com/lhorie/mithril.js into prop-fix
2015-12-14 06:42:34 -05:00
Einar
71c880d78d
fix hasty error
2015-12-11 22:14:08 +00:00
impinball
2a47a8e77d
Merge branch 'next' of https://github.com/isiahmeadows/mithril.js into prop-fix
2015-12-10 19:14:32 -05:00
impinball
cb29a21ec3
Fix #873 , regenerate minified variants.
...
Drive-by fix: uppercase tag name in failing m.trust test (doesn't make it
pass, though).
2015-12-10 18:54:43 -05:00
Toby Zerner
6478092492
Allow m.route links to be opened in a new window using the shift key
2015-12-11 09:47:20 +10:30
Leo Horie
c5a012b6f6
Merge pull request #877 from nordfjord/next
...
fix subcomponent unloading
2015-12-10 14:23:21 -05:00
Einar Norðfjörð
5ef5addb82
fix linting errors
2015-12-10 19:01:52 +00:00
Einar Norðfjörð
e846335f16
fix subcomponent unloading
2015-12-10 18:34:08 +00:00
Julien Bisconti
bd0ce5c06b
Overriding extract option in m.request
...
fixes : #859
2015-12-01 18:04:11 +01:00
impinball
90701a4cbb
Only call then once in prop.then.
2015-11-26 07:49:15 -05:00
impinball
42723cbeb6
Fully isolate m.prop(), make m.prop().then return current value
...
Note that this does *not* memoize `then`, another deviation from spec, but
it's unlikely this will actually cause very many bugs. It's also a breaking
change.
2015-11-26 07:44:19 -05:00
impinball
d7ef127be2
Isolate m.prop() and m.deferred() implementations (mostly)
...
This mostly isolates the implementations for both of these. Now, everything
here calls the method itself, not any of the external methods.
Few driveby fixes as well:
1. Git now ignores archive/ again (it's a build artifact, and can be removed
when updating `master`)
2. Since I had to rewrite most of the Deferred implementation, the new version
passes one of the skipped tests, so it is now enabled.
2015-11-20 02:49:48 -05:00
Leo Horie
5269f9b1ce
don't use non-standard trim, dies on Travis CI
2015-11-12 23:42:27 -05:00