Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

refactor(jQlite): Add the ability to use query selector without jQuery #15986

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Oct 11, 2017

  1. refactor(jQlite): add the ability to use query selector without jQuery

    `angular.element` threw an error if we tried to use query selector
    directly without jQuery. I thought that this was a silly little
    fix for the framework.
    
    A lot of the projects that I've worked for
    the past years are only including jQuery to use query selectors on
    the app (I know that are options for this), and I'm only making this PR
    because I think it's unnecessary to use
    `angular.element(document).find()` to accomplish such a small thing and
    to get the jQlite wrapper with the goodies.
    
    Now we can do this, without jQuery:
    
    `angular.element('.something')`
    
    And get the same result.
    orafaelfragoso authored and Rafael Fragoso committed Oct 11, 2017
    Configuration menu
    Copy the full SHA
    930ee2d View commit details
    Browse the repository at this point in the history
  2. refactor(jQuery): call window before using document

    use the window to call document as instructed
    Rafael Fragoso committed Oct 11, 2017
    Configuration menu
    Copy the full SHA
    ecb0569 View commit details
    Browse the repository at this point in the history