Results 1 to 2 of 2

Thread: Bug Creating onButtonBeforePressedChange Event

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha MVP Team Member
    Join Date
    Sep 2016
    Location
    Kennewick, WA
    Posts
    147

    Default Bug Creating onButtonBeforePressedChange Event

    Using Architect 4.2.4.389 I added the following code using a view controller binding to the event onbuttonbeforepresschange.

    Code:
    onButtonBeforePressedChange: function(sender, value, oldValue, , eOpts) {
            console.log('New Value: ' + value);
            console.log('Old Value: ' + oldValue);
    }
    The above code outputs the following error in the console when loading

    Code:
    Uncaught SyntaxError: Unexpected token ,
    Following the bug to the Sources the error occurs on this line
    Code:
    onButtonBeforePressedChange: function(sender, value, oldValue, , eOpts) {
    As you can see there is oldValue, , eOpts) finding a space and comma. This is the error location.

    The parameters sent on this function are automatically created by Architect therefore I cannot correct the code manually but clearly is a show stopper as nothing loads once this error is encountered.

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    1,006

    Default

    Sorry for the trouble. I have shared this information with the support team. They will look into this and get back with assistance. Thanks for your patience!

    Michele

Similar Threads

  1. Replies: 1
    Last Post: 1 Jul 2014, 7:17 AM
  2. grid cellmousedown event is creating error
    By amarnath1 in forum Ext: Q&A
    Replies: 1
    Last Post: 17 Jan 2014, 7:25 AM
  3. Creating PostBack Like Event or reloading page
    By mkariti in forum Ext: Discussion
    Replies: 2
    Last Post: 29 Aug 2011, 6:47 AM
  4. Problem with creating new event in the scheduler
    By VSI-Dev in forum Community Discussion
    Replies: 1
    Last Post: 17 Feb 2011, 8:31 AM
  5. Problem with creating an Event
    By agorman in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 22 Jul 2008, 4:35 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
  •