0 Replies Latest reply on Jan 10, 2011 11:43 AM by areohbee

    pairs of develop settings

    areohbee Level 5

      Just fixed a bug that's been baffling me in ChangeManager plugin.

       

      pairs(dev-settings) was iterating the current settings in a different order occasionally, resulting in erroneous change detection.

       

      Sorting the keys fixed the problem. i.e. using 'mySortedPairs(dev-settings)'

       

      Not sure what to say really 'cept "How 'bout that?"

       

      PS - I know Lua does not guarantee the order, I just assumed it would be the same for the same settings if they haven't changed - I assumed wrong...

       

      R