-
Notifications
You must be signed in to change notification settings - Fork 7
update for 0.11 #5
Conversation
|
updated and builds correctly 🍡 |
garyb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looks great apart from auto-wrapping QS!
src/DOM/Classy/ParentNode.purs
Outdated
| -- | null if no such element exists. | ||
| querySelector :: forall n eff. IsParentNode n => String -> n -> Eff (dom :: DOM | eff) (Nullable N.Element) | ||
| querySelector selector = PN.querySelector selector <<< toParentNode | ||
| querySelector :: forall n eff. IsParentNode n => String -> n -> Eff (dom :: DOM | eff) (Maybe N.Element) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we update the argument to use QuerySelector rather than String here (and below)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, yeah, might as well. pushed it up
37afe85 to
8dc7292
Compare
src/DOM/Classy/ParentNode.purs
Outdated
| import DOM (DOM) | ||
| import DOM.Classy.Util (fromAny) | ||
| import DOM.Node.ParentNode (QuerySelector) | ||
| import Data.Maybe (Maybe) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, last one, can we un-psc-ide the import ordering? 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hah, all right, pushed it up. i forgot letting psc-ide import stuff jumbles up the imports.
|
also got rid of the single import for queryselector |
|
Thanks! |
Depends on purescript-deprecated/purescript-dom#89