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

  • Home
  • SEARCH
  • 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

I'm working on building a development tool that is written in JavaScript. This will
I am working on a JavaScript application that needs to validate mathematical expressions and
I am working on a javascript app that users load via a configurable script
I am working on a JavaScript utility that tells the user the number of
I'm currently working on a JavaScript tool that, during the course of its execution,
I'm working with a bit of html and Javascript code that I've taken over
I'm trying to get a case-insensitive search with two strings in JavaScript working. Normally
I'm working on a JavaScript image resizing feature which rely on the IE only
I'm working on a simple javascript login for a site, and have come up
The object I’m working on is instantiated in JavaScript, but used in VBScript. In

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.