Git Product home page Git Product logo

Comments (4)

laughinghan avatar laughinghan commented on May 28, 2024

Huh? 'int' is not a JavaScript reserved word, and uglifyjs, at least, has
never complained

Han

On Sat, Jul 30, 2011 at 4:23 PM, RussellSprouts <
[email protected]>wrote:

It works in most browsers, but gives an error in minifiers and stuff. A
simple fix.

Reply to this email directly or view it on GitHub:
https://github.com/laughinghan/mathquill/issues/54

from mathquill.

RussellSprouts avatar RussellSprouts commented on May 28, 2024

Hmmm... the closure compiler and yui library complain for me.

It appears that int isn't a reserved word anymore, but some older browsers treat it that way. Those tools must treat it as one just to be safe.

I guess it doesn't really matter what you do with it then.

from mathquill.

laughinghan avatar laughinghan commented on May 28, 2024

Older browsers like Firefox 2 or like Netscape Navigator 4? We should
degrade gracefully for the former, we don't need to care about the latter do
we?

On Saturday, July 30, 2011, RussellSprouts <
[email protected]>
wrote:

Hmmm... the closure compiler and yui library complain for me.

It appears that int isn't a reserved word anymore, but some older
browsers treat it that way. Those tools must treat it as one just to be
safe.

I guess it doesn't really matter what you do with it then.

Reply to this email directly or view it on GitHub:
https://github.com/laughinghan/mathquill/issues/54#issuecomment-1693837

Han

from mathquill.

RussellSprouts avatar RussellSprouts commented on May 28, 2024

I haven't seen which browsers actually do treat it that way, but I thing it would be fine to leave it as is. When the Closure Compiler complained I figured that int must be reserved for future use. I hadn't actually looked it up.

from mathquill.

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.