So you're suggesting new globals that are bound to the document? That
sounds really bad. Also, there's no reason to suggest an alias to
querySelector() when it's much more likely that query() will be used by the
majority of developers.


On Wed, Sep 18, 2013 at 4:14 AM, Leon Gilyadov <leon.gilya...@gmail.com>wrote:

> *The problem:*
> document.querySelector and document.querySelectorAll
> are long and used a lot.
>
> Lines in the code are long.
>
> *Proposal:*
> q('.my-div')
> will be equal to:
> document.querySelector('.my-div)
>
> qq('.my-div')
> will be equal to:
> document.querySelectorAll('.my-div')
>
>
> --Leon Gilyadov.
>

Reply via email to