Commit graph

286 commits

Author SHA1 Message Date
Leo Horie
484a9d6c70 Merge remote-tracking branch 'origin/next' into next
Conflicts:
	mithril.min.js
	mithril.min.js.map
2015-12-18 22:09:11 -05:00
Leo Horie
fbe05a92ad build 2015-12-18 22:07:11 -05:00
impinball
eff4231b73 Regenerate minified variants [ci skip] 2015-12-16 13:41:24 -05:00
impinball
92ac26a31a Update minified build 2015-12-16 12:04:59 -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
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
086f56e13c Regenerate mithril.min.js{,.map} 2015-12-15 12:27:08 -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
impinball
9428fe729c s/fufill/resolve/ 2015-12-15 06:38:10 -05: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
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
Florian Albertz
814b5035ee Do not use window when it is not available 2015-11-07 14:37:29 +01:00
impinball
96bcc81022 Lint Mithril main
This changes enough things to merit a new patch release. It changed a few
implementation details in the process, but it's at least much cleaner.

Be ready for every other currently outstanding PR for this file to have merge
conflicts.
2015-11-03 01:32:17 -05: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
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
Leo Horie
b404d69d70 docs build 2015-04-30 22:02:06 -04:00
Trent Oswald
1d6405e547 Added check for this.attrs into m.route
m.route('path'), when called programmatically (not attached to an anchor
tag), did not update the url in the navigation bar. I tracked it to this
error, where it is searching for an elements attributes, sepecifically
the this.attrs.href, which did not exist when called programatically.
The error returning was "Cannot read property 'href' of undefined",
which linked back to line 618 in the mithril core file.

I added a simple check to see if this.attrs exists before calling in
.href. Fixed it like a charm. I tried to follow the current coding
style, but let me know if there is something amiss in my change.

I ran both grunt test and grunt testall and everything seemed to run
perfect.
2015-04-22 10:31:33 -06:00
Leo Horie
f07fbccbf6 v0.1.34 publish 2015-03-31 12:39:12 -04:00
Leo Horie
5d85a6bb0e v0.1.33 publish 2015-03-30 15:54:43 -04:00
Leo Horie
6ef5ed3d07 v0.1.32 release 2015-03-27 12:02:26 -04:00
Leo Horie
d4099a254b v0.1.31 release 2015-03-26 22:34:33 -04:00
Leo Horie
4b92c821c2 v0.1.30 2015-02-04 22:00:40 -05:00
Leo Horie
05831d98c7 v0.1.29 publish 2015-01-27 21:09:45 -05:00
Leo Horie
39bc20bec8 v0.1.28 2014-12-31 20:51:56 -05:00
Leo Horie
e9c892cb05 v0.1.27 publish 2014-12-11 10:36:47 -05:00
Leo Horie
40172848b5 v0.1.26 2014-12-02 13:14:20 -05:00
Leo Horie
e3b6243d7b v0.1.25 2014-11-28 13:45:25 -05:00
Leo Horie
328ae0769f 0.1.24 2014-11-13 20:18:01 -05:00
Leo Horie
c9bbfb2bbc Merge branch 'next' of github.com:g00fy-/mithril.js into g00fy--next
Conflicts:
	mithril.js
	mithril.min.js
	mithril.min.js.map
2014-11-12 23:03:46 -05:00
Leo Horie
d10266ce48 commit min and map files 2014-11-12 23:00:56 -05:00
Piotr Majewski
98794a668e chore: extract & cache commonly accessed variables 2014-11-08 09:10:54 +01:00
Piotr Majewski
b70a3addd3 style: fix missing commas 2014-11-08 07:56:01 +01:00