Skip to content
This repository was archived by the owner on Dec 16, 2019. It is now read-only.

Replacing className.split with target.hasClass()#418

Open
dipapazacharias wants to merge 1 commit intodotansimha:masterfrom
dipapazacharias:patch-1
Open

Replacing className.split with target.hasClass()#418
dipapazacharias wants to merge 1 commit intodotansimha:masterfrom
dipapazacharias:patch-1

Conversation

@dipapazacharias
Copy link

Instead of checking if className is an actual string in e.target object representing a DOM element (it's not a string in a highcharts graph for example or other sofisticated representations in the Document, I propose wrapping e.target with an angular provided jquery/jqlite object and use provided hasClass() method instead, which propably makes "contains" function redundant

Instead of checking if className is an actual string in e.target object representing a DOM element (it's not a string in a highcharts graph for example or other sofisticated representations in the Document, I propose wrapping e.target with an angular provided jquery/jqlite object and use provided hasClass() method instead, which propably makes "contains" function redundant
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant