[Act] Fwd: LPW2015 js seems broken

L Boivin elbeho at boivin.eu
Mon Nov 30 00:07:40 CET 2015


Hi,

I don't know if it can help:
A couple of month ago, Maddingue fixed something in Act about
properties for jQuery 1.6. So I guess upgrading  jQuery could help.

KR
Laurent

On 27/11/2015 14:41, Marco Fontani wrote:
> Hi,
>
> I submitted a patch to the LPW2015 github, but the site still seems to
> contain a bug I've not been able to find the source for in their
> codebase.
> My guess is it's something to do with act "proper", and I can't find
> such code in Github.
>
> See details below.
>
> Example of the problem:
>
> - go to http://act.yapc.eu/lpw2015/talk/6474
> - open Chrome Inspector
> - see error: Uncaught TypeError: $(...).prop is not a function
> - click on file/line, which displays:
>
>          $(":checkbox").each(function() {
>              toggle_image(this, $(this).val(), $(this).prop("checked"));
>          });
>
> It errors on the use of "prop".
>
> The page loads jQuery version 1.3.2 which - AFAICT - doesn't yet have "prop".
>
> So,
>
> Either jQuery should be upgraded to a more recent version which does
> (scary change), or the use of "prop" should be changed to "attr",
> which does something very similar to "prop" in jQuery 1.3.2 (and
> suffers from problems which later versions have replaced with "prop"
> for), but at least it'll make starring talks and such things possible.
>
> example patch:
>
>
>          $(":checkbox").each(function() {
> -            toggle_image(this, $(this).val(), $(this).prop("checked"));
> +            toggle_image(this, $(this).val(), $(this).attr("checked"));
>          });
>
>
> Hope this can reach the right people, and the change implemented so
> people attending the conference can again star talks!
>



More information about the Act mailing list