1. 08 Aug, 2015 1 commit
  2. 04 Aug, 2015 1 commit
    • James Robinson's avatar
      Teach event system about disposition and make 'consumed' disposition terminal · 53163f8b
      James Robinson authored
      This introduces the notion of event disposition and allows event
      targets (widgets and render objects) to consume events that should not
      be processed further. This is needed by the Switch component in the
      Drawer in the stocks example. The Switch is embedded in a DrawerItem.
      The Switch handles the gesture tap event to toggle its state and should
      handle pointer events to allow swiping and draw its own radial
      reaction. The DrawerItem also handles gesture taps to allow toggling
      the switch value when tapping anywhere on the drawer and to draw its
      own ink splash. When tapping on the switch, both the switch's render
      object and the DrawerItem's listener are in the event dispatch path.
      The Switch needs to signal in some fashion that it consumed the event
      so the DrawerItem does not also try to toggle the switch's state.
      53163f8b
  3. 30 Jul, 2015 2 commits
  4. 28 Jul, 2015 2 commits
  5. 23 Jul, 2015 1 commit
    • Hixie's avatar
      Remove the scheduleBuild() API. · 4e289380
      Hixie authored
      I've noticed an anti-pattern emerge where people call scheduleBuild()
      when they think they've changed enough state that they should rebuild,
      instead of just wrapping their changes in setState(). This leads to
      them missing state changes, having extraneous scheduleBuild() calls,
      and other similar bugs.
      
      By removing scheduleBuild(), the only way to actually schedule a build
      now is to call setState(), and hopefully that'll make it much clearer
      that you're only supposed to do this when you change state.
      4e289380
  6. 16 Jul, 2015 1 commit