caolan / caolan/highland

Without jQuery

Open
#139 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.4k
Forks
145
PR merge metrics
No merged PRs in 30d

Description

So I was wondering if theres a way to use highland without the need of a jquery wrapped selector.

Ex: A very trivial concept
I would like to achieve this which logs each click to the console

``` js
var stream _('click', document.body);
stream.each(_.log);
```

however I have to do

``` js
var stream _('click', $('body'));
stream.each(_.log);
```

Essentially I should be able to do
`document.querySelector('.selectorName')` vs `$('.selectorName')`

Any thoughts?

Thank you
-David

Contributor guide

Open the contributing guide

Research direction

Start by tracing Highland's browser event handling for a "click" event with a jQuery-wrapped selector. Compare that path with document.body and document.querySelector('.selectorName'); done means the example logs each click without requiring jQuery.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jquery
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.