Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Conversation

devversion
Copy link
Member

@devversion devversion commented Aug 18, 2016

  • The prefixer currently throws an error, when the jqLite element / native element is empty / undefined.
    This was noticeable when having a md-fab-actions element without any child elements.

FYI: Checking the nodeType is more elegant, than comparing the prototype. It's the same way jQuery uses as well.

cc. @ErinCoughlan

@devversion devversion added the needs: review This PR is waiting on review from the team label Aug 18, 2016
@topherfangio
Copy link
Contributor

LGTM 👍

* @param element {JQLite|Element} Element to be parsed
* @returns {HTMLElement} Parsed HTMLElement
*/
function _parseElement(element) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parse isn't really the right word. It implies that you're taking a string recognizing it into something else. I'd use _getNativeElement

* The prefixer currently throws an error, when the jqLite element / native element is empty / undefined.
  This was noticeable when having a `md-fab-actions` element without any child elements.
@devversion devversion force-pushed the fix/prefixer-do-not-throw branch from ea4eba7 to bba84b3 Compare August 19, 2016 17:32
@jelbourn
Copy link
Member

LGTM

@jelbourn jelbourn added pr: merge ready This PR is ready for a caretaker to review and removed needs: review This PR is waiting on review from the team labels Aug 19, 2016
@jelbourn jelbourn merged commit d07240b into angular:master Aug 19, 2016
@devversion devversion deleted the fix/prefixer-do-not-throw branch August 19, 2016 17:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr: merge ready This PR is ready for a caretaker to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants