sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Javascript Namespaces?

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 3 Posters 109 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 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

      1 Reply Last reply 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

        1 Reply Last reply 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

          1 Reply Last reply 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

            1 Reply Last reply 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