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

Fixing ng-jq bug with using getNgAttribute before jqLite variable is set #11027

Closed
wants to merge 0 commits into from

Conversation

mboudreau
Copy link
Contributor

The unit tests wasn't able to catch this unless it's on a 'fresh' angular page with ng-jq already added before angular bootstrapping. I've removed the need for jq() to rely on getNgAttribute and instead using element.getAttribute function with the found prefix.

Could use some direction on how to test ng-jq more thoroughly so this doesn't happen again in the future.

This fixes issue #11016.

@mboudreau
Copy link
Contributor Author

Lots of timed out tests again. Can someone see what's going on please?

@Narretz
Copy link
Contributor

Narretz commented Feb 11, 2015

I don't know about the timed out tests, but maybe it helps if you clean up the PR (put the fix on a new branch or make sure it sits exactly on top of master, so these other commits don't get in the way.

@Narretz Narretz added this to the 1.4.0-beta.5 / 1.3.14 milestone Feb 11, 2015
@Narretz
Copy link
Contributor

Narretz commented Feb 11, 2015

And I think if you force push the branch, it will trigger another travis run.

For the tests, maybe we should do an end2end test?

@mboudreau
Copy link
Contributor Author

Sorry, I resetted my fork to the upstream/master and added the change to it, but in the process it closed this PR. New PR was created: #11044

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants