sketchucation logo sketchucation
    • Login
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Javascript Namespaces?

    scheduled pinned locked moved Developers' Forum
    4 Posts 3 Posters 128 Views 3 Watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • J Offline
      Jim
      last edited by

      Is there a Javascript equivalent to Ruby modules used as namespaces? Do the Js functions need to be protected the same way as the Ruby methods to prevent conflicts in function names?

      Hi

      one-reply-to-this-post last-reply-time reply quote 0
      • thomthomT Offline
        thomthom
        last edited by

        The webdialogs will be completely separate from each other. One window will not interfere with another.

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        one-reply-to-this-post last-reply-time reply quote 0
        • J Offline
          Jim
          last edited by

          Thanks, that's good to know. Can you point me to a source so I can understand why?

          Hi

          one-reply-to-this-post last-reply-time reply quote 0
          • AdamBA Offline
            AdamB
            last edited by

            Well the DOM (document object model) of a HTML page is rooted from an instance of document and everything hangs off that.

            If you have multiple WebDialogs, you have multiple DOMs, each with their own parts hierarchy which have names which are 'within' the scope of just that document.

            So, Google "DOM" for more info, but its basically just a hierarchy of named & typed parts.

            Adam

            Developer of LightUp Click for website

            one-reply-to-this-post last-reply-time reply quote 0
            • 1 / 1
            • first-post
              last-post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement