-
Notifications
You must be signed in to change notification settings - Fork 9
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
shared: remove is
prefix from JavaScript class properties
#192
shared: remove is
prefix from JavaScript class properties
#192
Conversation
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.
Please go through all v1 bindings (source code, not typings) and fix compatiblity classes. For example, with your change, you're breaking alt.isClient
/ alt.isServer
- and there are more.
@carlos-menezes remove "Draft" tag once it's ready for review 👍 |
Sorry for the delay, @Yiin . Will look into the rest of this PR this weekend. |
Hey there, any progress on this? |
Really sorry for the delay, these last few weeks have been crazy. Anyway, I'm marking this a ready for review after the last commit. Let me know about any wrong-doings. edit: updates have been processing for a while now. |
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.
client/src/classes/RmlElement.cpp
Outdated
@@ -103,7 +103,7 @@ extern js::Class rmlElementClass("RmlElement", &baseObjectClass, nullptr, [](js: | |||
tpl.Method<&alt::IRmlElement::RemovePseudoClass>("removePseudoClass"); | |||
tpl.Method<&alt::IRmlElement::HasPseudoClass>("hasPseudoClass"); | |||
tpl.Method<&alt::IRmlElement::SetOffset>("setOffset"); | |||
tpl.Method<&alt::IRmlElement::IsPointWithinElement>("isPointWithinElement"); | |||
tpl.Method<&alt::IRmlElement::IsPointWithinElement>("pointWithinElement"); |
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.
Maybe should still be prefixed with is
here because it's a method and is more fitting?
server/src/classes/VoiceChannel.cpp
Outdated
@@ -19,7 +19,7 @@ extern js::Class voiceChannelClass("VoiceChannel", &baseObjectClass, nullptr, [] | |||
tpl.Method<&alt::IVoiceChannel::HasPlayer>("hasPlayer"); | |||
tpl.Method<&alt::IVoiceChannel::AddPlayer>("addPlayer"); | |||
tpl.Method<&alt::IVoiceChannel::RemovePlayer>("removePlayer"); | |||
tpl.Method<&alt::IVoiceChannel::IsPlayerMuted>("isPlayerMuted"); | |||
tpl.Method<&alt::IVoiceChannel::IsPlayerMuted>("playerMuted"); |
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.
Maybe should still be prefixed with is here because it's a method and is more fitting?
Closes #182