Results 1 to 2 of 2

Thread: DataSimlet has unreachable code in getData

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-14342 in
  1. #1
    Sencha User
    Join Date
    Jul 2014

    Default DataSimlet has unreachable code in getData

    Given the current source for DataSimlet: this code has unreachable parts:

    var me = this, data =, params = ctx.params, order = (||'')+'-'+(params.sort||'')+'-'+(params.dir||''), fields, sortFn; if (!order) { return data; }
    As order is at least a string of "--" no matter what is set in the params object the if-block can never be reached. Data is thus obliged to be an array which renders this unusable for endpoints that need objects as response.

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


    Thanks for the report! I have opened a bug in our bug tracker.

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