64 Commits

Author SHA1 Message Date
Patrick Steele-Idem
257eb8914f Improved test coverage 2017-09-08 14:54:47 -06:00
Patrick Steele-Idem
3c0ccb98d4 Workaround for bug in istanbul... 2017-09-08 13:13:06 -06:00
Patrick Steele-Idem
2be98636ea Fixes #817 - Support dynamic root elements
[Optimizations] Simplified bookkeeping for component tree
A component stack is no longer used

Small API improvements

Improved how component boundaries are managed

Assign keys to all HTML elements and custom tags for better diffing

Checking in progress

Just build the src when calculating size
2017-09-08 12:32:17 -06:00
Wu Jian Ping
69dbfc1226 fix undefined reference error in Component.js 2017-09-04 17:15:16 +08:00
Austin Kelleher
d0bad9de4d Merge pull request #816 from DylanPiercey/input-global-update
Add ability to update globals by setting new input.
2017-08-28 14:50:02 -04:00
Dylan Piercey
93eee66ee0 Add ability to update globals by setting new input. 2017-08-27 07:57:48 -07:00
Dylan Piercey
f37c622e5c Add better interop for importing modules with default exports (#803) 2017-08-15 14:34:31 -07:00
Austin Kelleher
42e66c1512 Fixes #778 - Fix Marko compiler generating incorrect path for requires on Windows. 2017-08-14 10:52:49 -04:00
Patrick Steele-Idem
d886ba0a5d Merge pull request #795 from oxala/master
Added `escapeAtTags` option to compiler in order to render `<@tags>` as they are;
2017-08-10 14:49:22 -06:00
Patrick Steele-Idem
fb14c77fb1 Merge pull request #797 from marko-js/796-svg-symbol-event
Fixes #796 - Fix events for event targets that are SVGElementInstance…
2017-08-10 11:07:18 -06:00
Austin Kelleher
93ae3eafaa Merge pull request #791 from marko-js/790-class-nested-body-error
Fixes #790 - Class tag should not allow nested body content.
2017-08-10 12:24:27 -04:00
Austin Kelleher
f5ebf16579 Fixes #796 - Fix events for event targets that are SVGElementInstance types in IE11. 2017-08-10 12:21:04 -04:00
Gleb Ryshkov
d887870f1e Used shortcut for escapeAtTags; 2017-08-08 13:50:56 -07:00
Gleb Ryshkov
228a2a014e Added escapeAtTags options in order to render <@tags> as they are; 2017-08-08 10:29:05 -07:00
haolchen
6bc2edd7ff simplify a condition judgement in components-jquery 2017-08-08 23:26:21 +08:00
Austin Kelleher
d20ef716da Fixes #790 - Class tag should not allow nested body content. 2017-08-08 10:46:10 -04:00
ULIVZ
95d2a96d04 Update compile/index.js test description
Update the test description. from `shouldbe` to `should be`.
2017-08-08 18:08:35 +08:00
Michael Rawlings
3f3618c620 Update handleRootNodes.js (#747)
* Update handleRootNodes.js

* don't try to get a tag for a node without a tagName
2017-08-07 15:47:08 -07:00
Austin Kelleher
c2cd9eb565 Merge pull request #786 from marko-js/784-fix-preserve-attrs-path
Fixes #784 - Fix compiled preserve-attrs path.
2017-08-04 13:06:04 -04:00
Austin Kelleher
1c79c5008a Fixes #784 - Fix compiled preserve-attrs path. 2017-08-04 12:14:51 -04:00
Connie C Chang
cdeffb6904 update bindComponentVar to use dynamic location 2017-07-24 13:13:49 -07:00
Connie C Chang
bb91fd7177 updating location of bindComponent helper 2017-07-20 17:37:47 -07:00
Austin Kelleher
0d56ec9c10 Merge pull request #758 from marko-js/757-key-attribute-postfix
fixes #757 - `:key` attribute postfix
2017-07-18 17:30:10 -04:00
Austin Kelleher
9d4d39b38c Address key suffix feedback. Additional tests. 2017-07-18 17:25:00 -04:00
Patrick Steele-Idem
78293afd85 Removed bad and unhelpful optimization to avoid infinite loops 2017-07-18 15:20:01 -06:00
Patrick Steele-Idem
1c53448061 Ensure onBeforeNodeDiscarded is only called once by looking to see if the node is still attached. 2017-07-18 15:20:01 -06:00
WT
653f0c7e2b Infinite loop fix
I'am completely sure if this is right solution, but if fromNextSibling = curFromNodeChild - in that place, in line 226 we have curFromNodeChild = fromNextSibling; - that's the same of curFromNodeChild = curFromNodeChild - and then we have infinitee loop, which I caught in my experiments with marko components
2017-07-18 15:20:01 -06:00
Patrick Steele-Idem
ad4e228b04 Fixes #761 - component.elId() does not work on the server 2017-07-18 15:20:00 -06:00
Austin Kelleher
126628a678 Fixes #755 - Allow diffing of HTML, head, and body. (#756) 2017-07-14 14:42:00 -04:00
Michael Rawlings
82eb8042c2 use strict 2017-07-11 17:34:22 -07:00
Michael Rawlings
6678e9edfc fixes #757 - add support for :key postfix on attributes 2017-07-11 16:54:01 -07:00
Patrick Steele-Idem
774ead0dcd Workaround for issues with babili :( 2017-07-11 13:01:22 -06:00
Patrick Steele-Idem
d212fb963c Merge pull request #751 from marko-js/749-infinite-loop
Fixes #749 #690 - Do not rely on root node having an ID on rerender a…
2017-07-05 11:31:55 -06:00
Austin Kelleher
75b0aa40f9 Fixes #749 #690 - Do not rely on root node having an ID on rerender and properly handle style root nodes. 2017-07-05 09:55:09 -04:00
Michael Rawlings
277fe37883 put package (browser.json) deps before others and parent deps before child deps (#750) 2017-06-29 14:03:07 -07:00
Austin Kelleher
f0419f5942 Fix duplicate body variable 2017-06-21 12:55:24 -04:00
Austin Kelleher
29f72cf68d Fixes #739 - Should not attempt to check instanceof of type Map if it does not exist in the browser. 2017-06-19 14:18:26 -04:00
Charlie Duong
76722440b9 Fixes issue with renderToString not rendering text nodes 2017-06-16 14:24:19 -04:00
Austin Kelleher
8cdb09a892 Fixes #655 - Implement renderToString in the browser. 2017-06-13 17:15:45 -04:00
Austin Kelleher
05ae72da4d Merge pull request #732 from marko-js/695-xml-compiler-fix
Fixes #695 - Always ignore unrecognized tags for XML files when using…
2017-06-13 14:57:52 -04:00
Austin Kelleher
1967f85d06 Fixes #695 - Always ignore unrecognized tags for XML files when using the compiler. 2017-06-12 15:24:11 -04:00
Austin Kelleher
11580da273 Fixes #705 - Throw error when the root HTML element is a component and has a dynamic id attribute. 2017-06-12 14:05:35 -04:00
Patrick Steele-Idem
b9f6624093 Merge pull request #716 from marko-js/issue-688
fixes #688 - add reference to browser.json in meta dependencies
2017-06-08 14:17:20 -06:00
Patrick Steele-Idem
a79621eee4 Merge pull request #722 from marko-js/719-express-5
Fixes #719 - Support Express 4 and Express 5.
2017-06-08 14:16:23 -06:00
Austin Kelleher
3831dbe595 Fixes #728 - Do not use module keyword because webpack compiles it to a custom object. 2017-06-08 13:38:18 -04:00
Austin Kelleher
f1c42a72da Fixes #719 - Support Express 4 and Express 5. 2017-06-05 10:40:20 -04:00
Michael Rawlings
5c2f626c6d fixes #658 by removing empty style blocks (#715)
* fixes issue 658 by removing empty style blocks
2017-06-02 13:33:05 -07:00
Michael Rawlings
19126c35fc fixes #688 - add reference to browser.json in meta dependencies 2017-06-01 15:22:30 -07:00
Austin Kelleher
a998535db7 Revert "Fixes #705 - Throw error when the root HTML element has a dynamic id …" 2017-06-01 16:12:09 -04:00
Austin Kelleher
9bdf4fdcb7 Merge pull request #708 from marko-js/705-dynamic-root-id-attr
Fixes #705 - Throw error when the root HTML element has a dynamic id …
2017-06-01 14:34:45 -04:00