Put the one in parens. Numeric literals can't have their members accessed
directly.
On Sep 20, 2013 11:24 AM, "Christopher Van" <notifications@github.com>
wrote:

> In hearth/media/js/utils.js:
>
> > @@ -43,6 +43,17 @@ define('utils', ['jquery', 'underscore'], function($, _) {
> >                  .replace(/'/g, '&#39;').replace(/"/g, '&#34;');
> >      }
> >
> > +    function slugify(s, limit) {
> > +        var value = (s || '').toLowerCase();
>
> > 1 && 1.toString ? 1.toString() : ''SyntaxError: Unexpected token ILLEGAL
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mozilla/fireplace/pull/267/files#r6493834>
> .
>