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: glidejs/glide Loading
base: master
Choose a base ref
...
head repository: ahmed0saber/glide Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 18 commits
  • 18 files changed
  • 1 contributor

Commits on Jul 15, 2023

  1. Refactor utils\dom.js

    The variable "matched" has not been reassigned a value, so it's better to use "const" instead of "let", to prevent any unexpected behavior that may occur due to unintended assignment.
    ahmed0saber committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    044126c View commit details
    Browse the repository at this point in the history
  2. Refactor mergeOptions in utils\object.js

    In this commit, I tried to make the code more cleaner by:
    - using the spread syntax to simplify the Object.assign method. This combines the default classes with the settings classes using the spread operator to create a new object that contains all the properties.
    - using a loop and square brackets notation, to merge all properties in a dynamic way, instead of adding each one with a lot of duplicate code.
    ahmed0saber committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    280ae08 View commit details
    Browse the repository at this point in the history
  3. Refactor throttle in utils\wait.js

    In this commit, I tried to make the code more cleaner by:
    - using "const" instead of "let" with unassignable functions.
    - using default parameter instead of using "if no options".
    ahmed0saber committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    0bb98fb View commit details
    Browse the repository at this point in the history
  4. Refactor focusing.js

    The variables have not been reassigned a value, so it's better to use "const" instead of "let", to prevent any unexpected behavior that may occur due to unintended assignment.
    ahmed0saber committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    157fd2c View commit details
    Browse the repository at this point in the history
  5. Refactor peeking.js

    The variable has not been reassigned a value, so it's better to use "const" instead of "let", to prevent any unexpected behavior that may occur due to unintended assignment.
    ahmed0saber committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    b830347 View commit details
    Browse the repository at this point in the history
  6. Refactor events-bus.js

    The variable has not been reassigned a value, so it's better to use "const" instead of "let", to prevent any unexpected behavior that may occur due to unintended assignment.
    ahmed0saber committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    6aebf15 View commit details
    Browse the repository at this point in the history
  7. Refactor build.js

    The variables have not been reassigned a value, so it's better to use "const" instead of "let", to prevent any unexpected behavior that may occur due to unintended assignment.
    ahmed0saber committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    884b689 View commit details
    Browse the repository at this point in the history
  8. Refactor clones.js

    - The variables have not been reassigned a value, so it's better to use "const" instead of "let", to prevent any unexpected behavior that may occur due to unintended assignment.
    - Using "slides.length > 0" is cleaner than "slides.length !== 0" because the second one means "(slides.length > 0) || slides.length < 0", and it can't be less than zero.
    ahmed0saber committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    681d6ee View commit details
    Browse the repository at this point in the history
  9. Update controls.js

    - The variables have not been reassigned a value, so it's better to use "const" instead of "let", to prevent any unexpected behavior that may occur due to unintended assignment.
    - In line 92, we return if there is no item, so there is no need to check for item again in line 96.
    - in removeClass, we can simplify this if statement by using optional chaining operator.
    ahmed0saber committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    c97c901 View commit details
    Browse the repository at this point in the history
  10. Refactor direction.js

    The variable has not been reassigned a value, so it's better to use "const" instead of "let", to prevent any unexpected behavior that may occur due to unintended assignment.
    ahmed0saber committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    0672351 View commit details
    Browse the repository at this point in the history
  11. Refactor gaps.js

    The variables have not been reassigned a value, so it's better to use "const" instead of "let", to prevent any unexpected behavior that may occur due to unintended assignment.
    ahmed0saber committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    3d62c7d View commit details
    Browse the repository at this point in the history
  12. Refactor keyboard.js

    - Highlighting the difference between the two different statements by creating an object that contains both the symbols.
    - Using "includes" for a more dynamic and readable condition.
    - Using square brackets notation to avoid duplicate code.
    ahmed0saber committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    fef1fd2 View commit details
    Browse the repository at this point in the history
  13. Refactor move.js

    The variables have not been reassigned a value, so it's better to use "const" instead of "let", to prevent any unexpected behavior that may occur due to unintended assignment.
    ahmed0saber committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    5a05a9b View commit details
    Browse the repository at this point in the history
  14. Refactor peek.js

    The variables have not been reassigned a value, so it's better to use "const" instead of "let", to prevent any unexpected behavior that may occur due to unintended assignment.
    ahmed0saber committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    b9a16b9 View commit details
    Browse the repository at this point in the history
  15. Refactor sizes.js

    The variables have not been reassigned a value, so it's better to use "const" instead of "let", to prevent any unexpected behavior that may occur due to unintended assignment.
    ahmed0saber committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    19223b2 View commit details
    Browse the repository at this point in the history
  16. Refactor swipe.js

    The variables have not been reassigned a value, so it's better to use "const" instead of "let", to prevent any unexpected behavior that may occur due to unintended assignment.
    ahmed0saber committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    4397d2d View commit details
    Browse the repository at this point in the history
  17. Refactor transition.js

    - The variables have not been reassigned a value, so it's better to use "const" instead of "let", to prevent any unexpected behavior that may occur due to unintended assignment.
    - Removing "NOT" from if statement to make it more readable.
    ahmed0saber committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    fc95edd View commit details
    Browse the repository at this point in the history
  18. Refactor translate.js

    The variable has not been reassigned a value, so it's better to use "const" instead of "let", to prevent any unexpected behavior that may occur due to unintended assignment.
    ahmed0saber committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    6fc9189 View commit details
    Browse the repository at this point in the history
Loading