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.
commit0e613a1058e9fba6176d71a2da59caf24218b44d authorevancz <info@elm-lang.org> dateSun 2 Sep 2012, 00:27 (14 years ago) parentf27453e
3 files changed+3−3
core-js/Everything.js+1 core-js/Graphics/Element.js+2−2 core-js/Graphics/Render.js−1
core-js/Everything.js+1
@@ -39,6 +39,7 @@ var includeGlobal = this;
3939 show = Value.show;
4040
4141 include (ElmCode.Graphics.Color);
42+ include (ElmCode.Graphics.Element);
4243
4344 includeAs ('Time') (Signal.Time);
4445 includeAs ('Mouse') (Signal.Mouse);
core-js/Graphics/Element.js+2−2
@@ -63,10 +63,10 @@ ElmCode.Graphics.Element = function() {
6363 return["EImage", Foreign.JavaScript.castStringToJSString(a1)]
6464 }
6565 function EVideo_41(a1) {
66− return["EVideo", a1]
66+ return["EVideo", Foreign.JavaScript.castStringToJSString(a1)]
6767 }
6868 function EFittedImage_42(a1) {
69− return["EFittedImage", a1]
69+ return["EFittedImage", Foreign.JavaScript.castStringToJSString(a1)]
7070 }
7171 function EFlow_43(a1) {
7272 return function(a2) {
core-js/Graphics/Render.js−1
@@ -55,7 +55,6 @@ function fittedImage(w,h,src) {
5555};
5656
5757var video = function(src) {
58− src = Value.toText(src);
5958 var e = newElement('video');
6059 e.controls = "controls";
6160 var source = newElement('source');