Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6689963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:34:53+00:00 2026-05-26T05:34:53+00:00

I am working on a JavaScript application that let’s other developers build their own

  • 0

I am working on a JavaScript application that let’s other developers build their own apps on top of it. A framework will be provided for them.

My question:

How do I implement this framework in such a way that developers have access to certain functions or objects. For example, I would like to prevent access to certain properties of window object.

I thought about parsing their codes which I believe is a good solution. But I am not positive that it would work on obfuscated codes.

I would like some suggestions on how I should do it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:34:53+00:00Added an answer on May 26, 2026 at 5:34 am

    Your approach sounds flawed. You really don’t want to be “fighting” with your developers by hiding things that they’re used to accessing.

    I would suggest that you try and provide a full (and well documented) API that encourages developers to use your framework in ways that you expect. Understand their use cases (how you expect them to use your platform) and provide APIs that make sticking to your “supported” objects a no-brainer.

    On the general topic of encapsulation (e.g. making functions private) then there are various patterns that you can employ in Javascript. A book such as JavaScript Patterns would be a great reference for you. Alternatively, searching for “javascript private functions” should get you to things such as this…

    JavaScript private methods

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background I'm working on a an educational JavaScript application/site (SPA) that will eventually have
I need JavaScript working almost perfectly in my application that should be able to
I'm working on a web application that has a lot to download (javascript, images,
We are working on a JavaScript application that does has been crashing for no
I am working on a rails application that uses big javascript libraries (e.g. jquery
I am currently working on rails3 application that uses jQuery. I have a javascript
I'm working on a small silverlight application that involves passing some data between javascript
I am currently working on a application that will be implementing user customizable widgets
I'm working on an application that will be available for Android and iPhone. The
I'm working on a web application that includes different JavaScript files, depending on where

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.