Results 1 to 2 of 2

Thread: Stores are including global prototype methods in item data.

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Dec 2011
    Vote Rating

    Default Stores are including global prototype methods in item data.

    Sencha Touch version tested:
    • 1.1.0
    Platform tested against:
    • Google Chrome
    • When a prototype method is added to "Object", that method is included as a property in the "data" object of every item in every store.
    • This causes problems when attempting to call "setValues" on a form.
    • The method should remain in the prototype where it can be filtered out using "hasOwnProperty".
    Test Case:

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    This has nothing to do with sotres. You are affecting all objects which will have adverse affects. The issue with your test case is the fields object has the union method and this is where it tries to set the values. You really shouldn't mess with the prototype, in Ext JS 4 and ST2 we have even moved away from this bad practice, reason for Ext.Date, Ext.Function and others.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:

Posting Permissions

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