Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: marcj/css-element-queries
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: ShawnCG/css-element-queries
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jun 23, 2016

  1. Removed requestAnimationFrame dependecy and tweaks

    Since we already knew in the scroll event if the element had resized, the need to check via requestAnimationFrame is not needed, so it was removed along with the dirtyCheck and the polyfill.
    
    The elements old height and width are passed through the callback as an object with the properties `width` and `height`.
    
    Other minor tweaks were made for readability and linting purposes.
    Shawn authored Jun 23, 2016
    Configuration menu
    Copy the full SHA
    810339b View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2016

  1. Fixed some issues, improved performance and added real-time events.

    Fixed issues:
      - #81
      - #72
    
    Performance:
      - Events are no longer added to each detector. Only one event is attached to listen to all sensors.
      - No longer using timeout functions.
      - Only one EventQueue is created to manage all ResizeSensors
      - Minor refactoring
    
    New Features:
      - ResizeSensor now listens to dynamically added elements. You can create an element in javascript
      - EventQueue accepts and passes arguments to the event listener.
      - ResizeSensor passes extra data that may be useful like the difference of the height and the width from the last resize event
    Shawn G authored Nov 17, 2016
    Configuration menu
    Copy the full SHA
    9aef2cd View commit details
    Browse the repository at this point in the history
Loading