-
Notifications
You must be signed in to change notification settings - Fork 217
Work without needing jQuery #40
Comments
I like it! That actually looks a lot cleaner. Would you mind opening a pull request for that with just the uncompiled source changed? |
No problem. Glad you like it. Just opened the pull request - #41 |
Will this PR be accepted? I would like to use this module without jQuery. |
@macneib Totally. If you want to pick up the previous work and clean it up, I'm more than happy to merge it. |
I've added the changes to your current version and it works for me (didn't work at all before) :) |
@nonec it would be awesome if you would be willing to submit those changes. |
Sure, I'd like to help! But I didn't include all the changes. Only the ones made to "angular-masonry.js" because I downloaded this as standalone. Will it still be of help? |
Would you be willing to fork this repo, insert your changes to angular-masonry and apply your changes with a PR? I would be more than happy to do that for you but you'll need to put the files up somewhere. |
Ok, I've spent some time looking over the fork by @dremonkey, and it seems solid. |
Yeah it is. I didn't have to change much. It just didn't work out of the box. I have set up the fork, but it's really just a hack of the changes made by @dremonkey put into the current codebase. So I'm not sure if a PR will be useful for this. If you want to work an that to prepare the PR let me knew and I can add you to that fork. |
@dremonkey's code worked fine for me. Do you have a nojquery branch on your fork? |
Nope, just put the changed .js-file in there. But there could be one created... |
this part. This is hard for me to understand. $.fn.masonry = sinon.spy() |
I guess it's using the sinon framework for the tests to spy on the masonry: Here is an explanition of the difference between sying and mocking: |
@passy just want to check what the house rules are before I get too involved. I'd like to structure the test like so /src/angular-masonry.spec.js Since I'm at it, would there be any objection to updating the Gruntfile to use ngAnnotate instead of ngMin which is obsolete atm? There are some other things but I expect with my schedule being the way it is modifiying everything will take some time. |
Any news on this one? |
Day job called. Pretty sure I won't have time for a while. |
Is there any progress on this? It seems like it's a pretty innocuous change since you don't need to depend on jQuery to utilize Masonry directly. |
Still happy to take PRs, @simonsayscode. :) |
Curious as to what your thoughts are on making this work without needing jQuery. I have a working fork if you would like to take a look.
https://github.com/dremonkey/angular-masonry/compare/nojquery
The text was updated successfully, but these errors were encountered: