Skip to content

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!

index.js Outdated
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 notifications@github.com
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 kmdavis.lordcerberus@gmail.com
wrote:

ok

On Mon, Jun 27, 2016 at 4:40 PM David Chambers notifications@github.com
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