ripple-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Visser (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (RIPPLE-56) syntax error: setAttribute() is only being passed 1 arg
Date Thu, 27 Feb 2014 01:40:25 GMT

    [ https://issues.apache.org/jira/browse/RIPPLE-56?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13913894#comment-13913894
] 

Andrew Visser commented on RIPPLE-56:
-------------------------------------

I found the code - it's in lib/client/ui/plugins/camera.js line 50

> syntax error: setAttribute() is only being passed 1 arg
> -------------------------------------------------------
>
>                 Key: RIPPLE-56
>                 URL: https://issues.apache.org/jira/browse/RIPPLE-56
>             Project: Apache Ripple
>          Issue Type: Bug
>         Environment: Chrome
> $> ripple version
> 0.9.20
>            Reporter: Andrew Visser
>
> Here is (according to the Chrome debugger) ripple.js line 49275 (and surrounding)
> ---------
>        upload.addEventListener('change', function () {
>           clear();
>           var capture = document.createElement(getType());
>           capture.setAttribute("controls");
>           capture.style.display = "inline";
>           capture.style.height = (screen.availHeight - 50) + "px";
>           capture.src = window.webkitURL.createObjectURL(upload.files[0]);
>           result.appendChild(capture);
>           take.style.display = "inline";
>         });
> -----------
> The call to setAttribute() is only passed one argument. That is an insufficient number
of arguments.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message