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

Fixing AMD Define #19

Merged
merged 1 commit into from
Jun 27, 2016
Merged

Fixing AMD Define #19

merged 1 commit into from
Jun 27, 2016

Conversation

kmdavis
Copy link
Contributor

@kmdavis kmdavis commented Jun 27, 2016

Require.js expects a callback function which will return the actual module, not the module itself.

@davidchambers
Copy link
Owner

Thanks, @kmdavis!

@@ -89,7 +89,7 @@
if (typeof module !== 'undefined') {
module.exports = format;
} else if (typeof define === 'function' && define.amd) {
define(format);
define(function () { return format; });
Copy link
Owner

Choose a reason for hiding this comment

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

If you delete the space between function and (), make lint should pass. Please git commit --amend && git push origin master --force. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

doh. I was using our own code style, which requires that space :D

Copy link
Owner

Choose a reason for hiding this comment

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

Thanks for the update. Would you mind squashing? I don't like to have failing tests at any point in a repository's history.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

On Mon, Jun 27, 2016 at 4:40 PM David Chambers [email protected]
wrote:

In index.js
#19 (comment)
:

@@ -89,7 +89,7 @@
if (typeof module !== 'undefined') {
module.exports = format;
} else if (typeof define === 'function' && define.amd) {

  • define(format);
  • define(function () { return format; });

Thanks for the update. Would you mind squashing? I don't like to have
failing tests at any point in a repository's history.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/davidchambers/string-format/pull/19/files/4438cd52d2311de61a6109017ab9f5e616084521#r68661495,
or mute the thread
https://github.com/notifications/unsubscribe/AAIGxnHAMaxOxzOz-4hOa8jtKSBTR3AOks5qQENggaJpZM4I_hEN
.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

On Mon, Jun 27, 2016 at 4:41 PM Kevan Davis [email protected]
wrote:

ok

On Mon, Jun 27, 2016 at 4:40 PM David Chambers [email protected]
wrote:

In index.js
#19 (comment)
:

@@ -89,7 +89,7 @@
if (typeof module !== 'undefined') {
module.exports = format;
} else if (typeof define === 'function' && define.amd) {

  • define(format);
  • define(function () { return format; });

Thanks for the update. Would you mind squashing? I don't like to have
failing tests at any point in a repository's history.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/davidchambers/string-format/pull/19/files/4438cd52d2311de61a6109017ab9f5e616084521#r68661495,
or mute the thread
https://github.com/notifications/unsubscribe/AAIGxnHAMaxOxzOz-4hOa8jtKSBTR3AOks5qQENggaJpZM4I_hEN
.

Require.js expects a callback function which will return the actual module, not the module itself.
@davidchambers
Copy link
Owner

🌳

@davidchambers davidchambers merged commit 46f62b4 into davidchambers:master Jun 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants