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

Adds extraclasses option to events; #281

Closed
wants to merge 2 commits into from

Conversation

long-lazuli
Copy link

Replace element instead of putting stuff inside it. (keep extraClasses)
Correct bug when lengthOfTime is not a month;

Replace element instead of putting stuff inside it. (keep extraClasses)
Correct bug when lengthOfTime is not a month;
}

}
} )
Copy link
Collaborator

Choose a reason for hiding this comment

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

This looks pretty verbose for what I think is just a space delineated concatenation of the classes.

What if it was just:

extraClasses += (" " + this.options.classes.event)
    + (_.isArray(event.extraClasses) ? " " + event.extraClasses.join(" ") : "");

?

Copy link
Author

Choose a reason for hiding this comment

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

Seems super legit :)

Copy link
Author

Choose a reason for hiding this comment

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

I tried to preserve initial codestyle.

@mikegioia
Copy link
Collaborator

mikegioia commented Oct 4, 2016

Thanks @long-lazuli I'm going to get to these today. Also (FYI) you don't have to update the version, that all happens during a compilation step in master. This one was the only open PR but if we had 2 or more that all incremented the version they'd eventually conflict :P I can reset it during the merge.

@long-lazuli
Copy link
Author

long-lazuli commented Oct 5, 2016

Thx for this explanation about versions, @mikegioia
I let you reset it.

mikegioia added a commit that referenced this pull request May 28, 2019
mikegioia added a commit that referenced this pull request May 28, 2019
* Fixes audit warnings and errors with new packages; adding package lock file
* Audited NPM packages and linted src file. All lint errors and warnings have been fixed.
* Resolves #332
* Merged fix for #330 and added tests that verify it
* Fixes bug found from a fix in #281
* Recompiled assets and updated changelog for 1.5.0
@long-lazuli long-lazuli closed this Jan 6, 2022
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

2 participants