Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HOLD] Added AMD/CommonJS compatible definitions #103

Closed
wants to merge 1 commit into from
Closed

[HOLD] Added AMD/CommonJS compatible definitions #103

wants to merge 1 commit into from

Conversation

syavorsky
Copy link

No description provided.

@dcneiner
Copy link
Collaborator

dcneiner commented Jul 1, 2013

@yavorskiy - Sorry for the delay in reviewing this request, I'll be looking to review it this week and provide feedback or merge as appropriate. Thanks for the time you put into this already!

@dcneiner
Copy link
Collaborator

dcneiner commented Jul 1, 2013

@yavorskiy As I review the code, there seem to be a number of changes unrelated to adding Common JS/AMD support to the file. Can you please submit a new request that only adds CommonJS/AMD support, and then after that's merged we can look at the other fixes you put in place?

Also, I think I'd prefer "root" instead of "window" for your primary variable name in the factory function.

Thanks for the work you put into this already!

@syavorsky
Copy link
Author

@dcneiner ok, happy to hear it's going to be merged.
I would still like to explain some changes you asked to remove, hope you gonna change you mind. Besides minor code linting the only material change there was tweaking $.ajaxSettings. Idea was to let function($) {} produce the module without implicitly changing $. This way $.* references are bound only in browser environment when it is invoked as a traditional jQuery plugin. For other environments it's just a module providing same interface and referring jQuery but not changing it.
I did notice mistake in my code though, where i try to redeclare settings which was defined at the top.
Let me know what you think, I will make all changes as needed.

@dcneiner
Copy link
Collaborator

dcneiner commented Jul 2, 2013

@yavorskiy Ah, ok – that makes sense. I'd probably prefer the linting changes be made in a separate commit just so they aren't hidden in the CommonJS/AMD commit – but this makes sense. If you can fix the settings issue, and update it to work against master - that would be awesome.

@dcneiner
Copy link
Collaborator

dcneiner commented Jul 2, 2013

@yavorskiy – I meant, I'd prefer the linting changes be separate but its fine to leave them in the CommonJS/AMD commit… no use creating extra work for something like that. Thank you!

@syavorsky
Copy link
Author

@dcneiner ok, cool, I will clean it up.

@syavorsky
Copy link
Author

@dcneiner sorry for taking that long. Please review the changes and let me know. I see one test failing (Request Data Matching: Correct data matching on request with arrays) when I run qunit locally but it wasn't passing even before I made changes.

@dcneiner
Copy link
Collaborator

@yavorskiy It was not my intention to let this sit so long – Thank you for your work on it, and I'll look to get it merged in early next week.

@pojka
Copy link

pojka commented Jul 1, 2014

Any chance of this PR being accepted? Finding it very difficult to get mockjax working in a compiled AMD build which is a shame

@jakerella
Copy link
Owner

Our apologies again for the delayed response, we're just getting back into active development on this. I've looked through the changes and I think they should work just fine. Unfortunately, the repo that the changes came from no longer exists and so I cannot checkout that branch to run the tests.

@yavorskiy, am I missing something? Did you perhaps delete your fork? If so, we might take these changes and implement them ourselves unless you have any concerns there.

@dcneiner did you have any other comments on these changes?

@syavorsky
Copy link
Author

Sorry, I am afraid it's deleted now, it seemed dead.

Sergii

On Fri, Aug 8, 2014 at 1:29 PM, Jordan Kasper notifications@github.com
wrote:

Our apologies again for the delayed response, we're just getting back into
active development on this. I've looked through the changes and I think
they should work just fine. Unfortunately, the repo that the changes came
from no longer exists and so I cannot checkout that branch to run the tests.

@yavorskiy https://github.com/yavorskiy, am I missing something? Did
you perhaps delete your fork? If so, we might take these changes and
implement them ourselves unless you have any concerns there.

@dcneiner https://github.com/dcneiner did you have any other comments
on these changes?


Reply to this email directly or view it on GitHub
#103 (comment)
.

@jakerella
Copy link
Owner

@yavorskiy No problem,. what I might do is port this over to an issue and along with your code patch as an attachment, then we can do a new PR that includes proper tests and everything.

Sound ok?

@syavorsky
Copy link
Author

Sure, sounds good
On Aug 9, 2014 10:57 AM, "Jordan Kasper" notifications@github.com wrote:

@yavorskiy https://github.com/yavorskiy No problem,. what I might do is
port this over to an issue and along with your code patch as an attachment,
then we can do a new PR that includes proper tests and everything.

Sound ok?


Reply to this email directly or view it on GitHub
#103 (comment)
.

@jakerella jakerella added this to the Mockjax 1.6.0 milestone Aug 14, 2014
@jakerella jakerella modified the milestones: Mockjax 2.0, Mockjax 1.6.0 Sep 29, 2014
@jakerella jakerella mentioned this pull request Nov 7, 2014
8 tasks
@jakerella jakerella changed the title Added AMD/CommonJS compatible definitions [HOLD] Added AMD/CommonJS compatible definitions Jan 6, 2015
@prantlf
Copy link
Contributor

prantlf commented Mar 8, 2015

I was in need for the module wrapper and wrote an alternative implementation with just the wrapping code and compliant to the UMD. I created PR #224 for your consideration, at first for the master branch only.

@jakerella
Copy link
Owner

Implemented in #244.

@jakerella jakerella closed this Apr 9, 2015
@jakerella jakerella mentioned this pull request May 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants