Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: callParent() breaks Firefox when using js strict mode

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #11
    Ext JS Premium Member
    Join Date
    Nov 2007
    Location
    Cologne, Germany
    Posts
    13
    Vote Rating
    7
      1  

    Default

    +1 for strict mode. I hope it was not a design decision to abuse the API and not being able to support strict mode at all.

  2. #12
    Sencha User
    Join Date
    Mar 2010
    Location
    Bay Area
    Posts
    152
    Vote Rating
    1
      0  

    Default

    The Ext JS 4 class system relies on arguments.caller and we don't see any way to support strict while retaining our class coding convention. We don't plan to change the API in any significant breaking way within the 4.x line, so this isn't on deck for happening in that code line. We're taking a fresh look for future major releases, but after the breakage from 3.x to 4.x, we're becoming extremely sensitive about changing large parts of the Ext API surface all at once.

  3. #13
    Sencha User
    Join Date
    Feb 2014
    Location
    Berlin
    Posts
    1
    Vote Rating
    1
      1  

    Default

    +1 on strict mode for the future.

  4. #14
    Sencha Premium Member
    Join Date
    Nov 2012
    Posts
    9
    Vote Rating
    0
      0  

    Default

    For anyone who stumbles across this issue in hope of a possible way forward, you may find this babel plugin of use.

    I wrote it to try to solve this problem by replacing all callParent calls with the direct method call on the parent class' method at compilation time. From there, it should be possible to "use strict", or even use babel to transpile your code from ES2016 syntax (also something which can't be done because of this issue).

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 1
    Last Post: 28 Mar 2011, 2:43 PM
  2. Google map in Window, IE7 strict mode
    By dickp in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 26 Oct 2008, 1:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •