Results 1 to 2 of 2

Thread: Null-initiated bindings generate an error when they are destroyed

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1

    Default Null-initiated bindings generate an error when they are destroyed

    See: https://fiddle.sencha.com/#view/editor&fiddle/1r2d

    Steps:
    1: Click on button "Create window"
    2: Close the window to destroy it
    3: See the error in console "TypeError: binding is undefined"

    The error is appear in the line No. 53541 of the ext-all-debug.js file.

    Something similar happen in this post: https://www.sencha.com/forum/showthread.php?308430

  2. #2
    Sencha Premium User
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258

    Default

    Can you elaborate on the use case here? What is the need for including a bind to null?

  3. #3

    Default

    Hi, thanks for the quick reply.

    It is not a necessity, it just happened. I was retrieving the binding value of a function that returns null if what is requested does not exist and during the initialization of the binding nothing happens, ext never said "hello there is a problem here, I can not create a binding from null", in fact null Is used to destroy a binding. I see the problem when ext-js allows you to create a binding with null value initially. I think the problem is not the fact of the need for a binding with null value, but the fact that a false binding is internally created or simply registered as undefined and no alert message is created to indicate that this can generate a problem , Which occurs when you try to destroy all bindings and undefined does not have .destroy () logically. I think you should throw an exception when this happens or just throw it away when its value is not allowed, what I do not think should happen is that an error occurs when trying to destroy a binding that from the beginning was not created, there is only one key with undefined value.

Similar Threads

  1. [CLOSED] Error: Cannot add destroyed item
    By MikeRH in forum Ext 5: Bugs
    Replies: 1
    Last Post: 30 Sep 2014, 9:21 PM
  2. Replies: 2
    Last Post: 12 May 2014, 4:39 PM
  3. [SOLVED] Sencha generate app Null Pointer Exception
    By BELGARION111 in forum Sencha Cmd
    Replies: 7
    Last Post: 26 Feb 2014, 2:01 AM
  4. Replies: 0
    Last Post: 4 Nov 2009, 4:15 PM

Tags for this Thread

Posting Permissions

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