Leo Horie
47cc6a7b03
make it possible to return subtree directive as root
2015-04-28 15:56:43 -04:00
Leo Horie
0870839e90
don't allow extract option to break jsonp
2015-04-24 15:55:11 -04:00
Leo Horie
86deb2fcb6
oops. fix brokenness
2015-04-22 23:00:34 -04:00
Leo Horie
2de9985a34
throw error if entering infinite redirect loop
2015-04-22 20:45:37 -04:00
Leo Horie
f0b20da30a
update docs about config: m.route
2015-04-22 20:32:39 -04:00
Leo Horie
51d073e414
Merge remote-tracking branch 'origin/next' into components
2015-04-22 20:22:12 -04:00
Leo Horie
675f66a44b
improve error message
2015-04-22 20:20:43 -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
Toby Zerner
23766a5cbe
Prevent scroll on redraw inside onunload if previous onunload calls preventDefault
...
https://github.com/lhorie/mithril.js/issues/560#issuecomment-93876904
2015-04-22 07:48:43 +09:30
Leo Horie
3fd7013d90
Merge pull request #571 from tobscure/redraw-all-fix
...
Fix nodes without config not being cleared when redraw strategy is all
2015-04-21 10:53:20 -04:00
Leo Horie
dbee97bf04
ensure component lifecycle works for components with implicit controllers
2015-04-21 09:23:55 -04:00
Toby Zerner
46406095f2
Fix nodes without config not being cleared when redraw strategy is all
...
Nodes without a config function never get a configContext, and thus the
logic to ensure they are cleared on a full redraw was broken.
2015-04-21 11:47:53 +09:30
Leo Horie
15c0686b27
prevent early redraw of component w/ routed async components
2015-04-20 12:41:51 -04:00
Leo Horie
cf1f316bee
don't redraw component before async service finishes
2015-04-20 11:20:04 -04:00
Leo Horie
cc8cac358a
#567 reset scroll before config runs
2015-04-18 22:39:59 -04:00
Leo Horie
ec8e42a923
clean up dead variable
2015-04-18 09:17:37 -04:00
Leo Horie
6c32afea43
#569 fix diff edge case w/ select input
2015-04-17 22:21:03 -04:00
Leo Horie
006445960b
clean up
2015-04-17 22:13:15 -04:00
Leo Horie
fce5f4b86f
prevent dom recreation if only class value changed
2015-04-15 22:40:50 -04:00
Leo Horie
94d804d850
#554 don't initialize ctx.retain
2015-04-14 22:47:56 -04:00
Leo Horie
e7992553d9
#560 prevent scroll on next redraw if onunload calls preventDefault
2015-04-14 21:51:56 -04:00
Leo Horie
ce883b4089
#555 don't cache controller if redraw strategy is all
2015-04-14 21:38:21 -04:00
Leo Horie
a7052510d6
Merge branch 'next' into components
2015-04-14 20:40:28 -04:00
valtron
ce20520f3a
Canonicalize options.method in m.request
2015-04-14 11:46:40 -06:00
Leo Horie
35673c994b
#535 prevent always-redraw-from-scratch if Object.prototype is polluted
2015-04-13 23:15:26 -04:00
Leo Horie
f0f1e88170
#551 don't destroy root if forced synchronous redraw
2015-04-13 23:04:04 -04:00
Leo Horie
f3f5b10f1b
Merge remote-tracking branch 'origin/components' into components
2015-04-13 08:30:30 -04:00
Leo Horie
0f0881857f
fix commonjs module declaration
2015-04-13 08:30:14 -04:00
Leo Horie
2923104d27
clean up
2015-04-13 08:29:03 -04:00
Leo Horie
5ffd80f5c6
Merge pull request #549 from tobscure/onunload-context
...
Fix onunload being called with incorrect context
2015-04-13 08:27:46 -04:00
Toby Zerner
d25f1c83af
Fix onunload being called with incorrect context
2015-04-12 20:19:36 +09:30
Toby Zerner
49e6e35f03
Fix module.exports
...
Looks like you did a mass find/replace of ‘module’ to ‘component’,
accidentally breaking module.exports
2015-04-12 20:13:54 +09:30
Leo Horie
9e558c199c
#544 ignore class: undefined
2015-04-11 20:14:43 -04:00
Leo Horie
bcf7356647
Merge branch 'next' into components
2015-04-09 23:01:38 -04:00
Leo Horie
f7263fea4d
style
2015-04-09 23:01:27 -04:00
Leo Horie
9e8dc6998d
rework api
2015-04-09 22:44:45 -04:00
Shlomo Dalezman
b00f4f87d9
added parsing of '?' for query strings
2015-04-07 19:29:36 -04:00
Leo Horie
f85e3a675c
split into m.component and m.mount, deprecate m.module
2015-03-31 15:53:41 -04:00
Leo Horie
ba26db057e
Merge remote-tracking branch 'origin/next' into components
2015-03-31 10:50:41 -04:00
Leo Horie
b111d058be
fix regression caused by #524
2015-03-31 10:50:19 -04:00
Leo Horie
dab565727c
Merge branch 'next' into components
2015-03-30 13:27:17 -04:00
Leo Horie
648f4734b5
#524 fix diff bug when mixing undefined in a tree
2015-03-30 13:25:32 -04:00
Leo Horie
8b1a58bc51
Merge branch 'next' into components
2015-03-27 11:58:59 -04:00
Leo Horie
9748b6ece4
#454 fix regression
2015-03-27 11:55:09 -04:00
Leo Horie
1586d8aaa1
Merge remote-tracking branch 'origin/next' into components
2015-03-26 21:14:49 -04:00
Leo Horie
f7cacb7a0b
#507 fix diff regression when mixing elements and text nodes
2015-03-26 21:14:30 -04:00
Leo Horie
9ada8111d7
Merge branch 'next' into components
...
Conflicts:
mithril.d.ts
2015-03-25 22:07:11 -04:00
Leo Horie
6f832a7040
#501,#502,#504 buildQueryString and parseQueryString fixes and tests
2015-03-25 21:54:36 -04:00
Leo Horie
9f110774aa
#510 allow recursive nesting of components
2015-03-24 22:18:06 -04:00
Leo Horie
c1ea98fd09
Merge branch 'next' into components
2015-03-24 20:23:39 -04:00