on master help sign in
Include Graphics.Element by default. Fix bugs for `fittedImage` and change when the string for `video` is converted to a JSString.
0e613a1evancz
core-js/Everything.js+1
@@ -39,6 +39,7 @@ var includeGlobal = this;
39 show = Value.show;
39 show = Value.show;
40
40
41 include (ElmCode.Graphics.Color);
41 include (ElmCode.Graphics.Color);
42+ include (ElmCode.Graphics.Element);
42
43
43 includeAs ('Time') (Signal.Time);
44 includeAs ('Time') (Signal.Time);
44 includeAs ('Mouse') (Signal.Mouse);
45 includeAs ('Mouse') (Signal.Mouse);
core-js/Graphics/Element.js+2−2
@@ -63,10 +63,10 @@ ElmCode.Graphics.Element = function() {
63 return["EImage", Foreign.JavaScript.castStringToJSString(a1)]
63 return["EImage", Foreign.JavaScript.castStringToJSString(a1)]
64 }
64 }
65 function EVideo_41(a1) {
65 function EVideo_41(a1) {
66− return["EVideo", a1]
66+ return["EVideo", Foreign.JavaScript.castStringToJSString(a1)]
67 }
67 }
68 function EFittedImage_42(a1) {
68 function EFittedImage_42(a1) {
69− return["EFittedImage", a1]
69+ return["EFittedImage", Foreign.JavaScript.castStringToJSString(a1)]
70 }
70 }
71 function EFlow_43(a1) {
71 function EFlow_43(a1) {
72 return function(a2) {
72 return function(a2) {
core-js/Graphics/Render.js−1
@@ -55,7 +55,6 @@ function fittedImage(w,h,src) {
55};
55};
56
56
57var video = function(src) {
57var video = function(src) {
58− src = Value.toText(src);
59 var e = newElement('video');
58 var e = newElement('video');
60 e.controls = "controls";
59 e.controls = "controls";
61 var source = newElement('source');
60 var source = newElement('source');