Giter VIP home page Giter VIP logo

Comments (7)

Jimgskoop avatar Jimgskoop commented on September 1, 2024

Here's the remaining complaints from JSLint on lu.js:

lint:lu.js:28:31:Expected an identifier and instead saw 'undefined' (a reserved word).
jslint:lu.js:191:32:The Function constructor is eval.
jslint:lu.js:415:82:'JSONify' was used before it was defined.
jslint:lu.js:415:82:Missing 'new'.

Thoughts?

-Jim G

from lu.

Jimgskoop avatar Jimgskoop commented on September 1, 2024

I am mostly concerned with

jslint:lu.js:415:82:'JSONify' was used before it was defined.

I can't find where JSONify is defined anywhere within Lu. Did we forget to include a library or something...?

-Jim G

from lu.

Iheartweb avatar Iheartweb commented on September 1, 2024

Hmmm....

this line: return $element.attr( ATTR, keys.join( ' ' ) ).attr( ATTR + '-config', JSONify( settings ) ); should be
return $element.attr( ATTR, keys.join( ' ' ) ).attr( ATTR + '-config', JSON.stringify( settings ) );

from lu.

Iheartweb avatar Iheartweb commented on September 1, 2024

Yeah, agree that's the only one that's problematic.

from lu.

Iheartweb avatar Iheartweb commented on September 1, 2024

I fixed the "JSONify" problem

from lu.

Jimgskoop avatar Jimgskoop commented on September 1, 2024

That makes more sense!

;)

-Jim G

On Apr 7, 2012, at 3:18 AM, Robert Martone <[email protected]

wrote:

Hmmm....

this line: return $element.attr( ATTR, keys.join( ' ' ) ).attr( ATTR

  • '-config', JSONify( settings ) ); should be
    return $element.attr( ATTR, keys.join( ' ' ) ).attr( ATTR + '-
    config', JSON.stringify( settings ) );

Reply to this email directly or view it on GitHub:
https://github.com/Iheartweb/Lu/issues/71#issuecomment-5007239

from lu.

Iheartweb avatar Iheartweb commented on September 1, 2024

Looking good now.

from lu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.