lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sun, Mar 1, 2015 at 8:45 AM, Joh Journeyer J.
<oosaprogrammer@gmail.com> wrote:
> Hi list,
>
> Let me ask another question about the sample orbit app todo.
>
> I want to know why there are $$s not $.
> For the sentence below,
>
> $$(".remove").click(function () {
>

Because this is JavaScript code embedded in the template. $$ escapes
to a single $ in the generated page. Otherwise Cosmo would try to
interpret this.

--
Fabio Mascarenhas