GithubHelp home page GithubHelp logo

Remove org. from modestmaps about modestmaps-js HOT 5 CLOSED

tmcw avatar tmcw commented on June 28, 2024
Remove org. from modestmaps

from modestmaps-js.

Comments (5)

RandomEtc avatar RandomEtc commented on June 28, 2024

I'd consider aliasing it routinely in your app and see what sticks. e.g. I regularly do var MM = com.modestmaps in my app code. Sometimes I even copy all the com.modestmaps members to window with a quick for-in loop.

There needs to be something because e.g. Point, Location, Coordinate, Transformation, Projection and Map are all too generic for Modest Maps to claim in the global namespace. Is MM rare enough?

But yeah it could go away harmlessly - we could even make a com.modestmaps alias of whatever we choose.

from modestmaps-js.

tmcw avatar tmcw commented on June 28, 2024

I think MM sounds good. I checked out the source to $.noConflict and it looks unobtrusive enough (albeit reliant on the browser... we'd have to improve that) that we could go for a concise namespace and never totally clobber other tools that take MM.

from modestmaps-js.

RandomEtc avatar RandomEtc commented on June 28, 2024

Underscore has a similar feature, it's a tiny function and just a
matter of saving the previous MM before creating your own.

On 5 May 2011 16:56, tmcw
[email protected]
wrote:

I think MM sounds good. I checked out the source to $.noConflict and it looks unobtrusive enough (albeit reliant on the browser... we'd have to improve that) that we could go for a concise namespace and never totally clobber other tools that take MM.

Reply to this email directly or view it on GitHub:
#26 (comment)

from modestmaps-js.

migurski avatar migurski commented on June 28, 2024

+1 for MM as well - it's concise and it's what I end up actually using all the time anyway.

from modestmaps-js.

tmcw avatar tmcw commented on June 28, 2024

Fixed in a905543

from modestmaps-js.

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.