-
Notifications
You must be signed in to change notification settings - Fork 36
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
Conversation
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; }); |
There was a problem hiding this comment.
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
. :)
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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.
🌳 |
Require.js expects a callback function which will return the actual module, not the module itself.