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 8431577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:53:33+00:00 2026-06-10T05:53:33+00:00

This is the input: function local2functionA() { local2functionB(‘hello’); } function local2functionB(text) { alert(text); }

  • 0

This is the input:

function local2functionA()
{
    local2functionB('hello');
}

function local2functionB(text)
{
    alert(text);
}

This is the output:

function local2functionA(){local2functionB("hello")}function local2functionB(a){alert(a)};

Any ideas where it hasn’t munged the function names?

Same outcome at http://www.shrinker.ch/

  • 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-06-10T05:53:34+00:00Added an answer on June 10, 2026 at 5:53 am

    I think it’s because those functions are declared on the top-level, and thus visible to the “outside” so you cannot just change their name.

    If you put the definition of local2functionB inside of local2functionA, it minifies nicely:

    function local2functionA()
    {
        function local2functionB(text)
        {
          alert(text);
        }
    
        local2functionB('hello');
    }
    
    // becomes 
    
    function local2functionA(){alert("hello")};
    

    Note that the remaining top-level function also does not get renamed (while the “private” function gets inlined away completely).

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

Sidebar

Related Questions

I have this: $(document).ready(function() { $(input[type=button]).click(function () { $(#test).html(W3Schools); alert(Would submit: + $(this).siblings(input[type=text]).val()); $.ajax({
$('input').change(function(){ alert($(this).val()); }); $('input').val(1); This dont work. I need capture the change input with
Is there any PHP/GD function that can calculate this: Input: image width, image height
HTML: <div> <input> <label> </div> JS: $('div input').live('click',function(){ alert($(this).is(':checked')); }); $('div').live('click,'function(e){ if(!$(e.target).is('input')) $(this).find('input').click(); });
I have this event listener: input_1.addEventListener('input',function(){ updateFromInput(1); },false); It controls the location of a
So given this input string: =?ISO-8859-1?Q?TEST=2C_This_Is_A_Test_of_Some_Encoding=AE?= And this function: private string DecodeSubject(string input) {
So the have seem something like this today: $$('input').each(function() { // do something });
Hy, my problem is this http://jsfiddle.net/VZ2MK/1/ (function(){ var input = $('.test').clone(); $('a.add_input').on('click', function(e){ $(this).before(input);
$(':input').blur(function () { $(this).css('border', 'solid 1px #ccc'); // Check if last input and do
I have an if statement that needs to look like this: UPDATE $(input#textbox).keypress(function(e){ key==e.which;

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.