This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 143
Expose access to GetPropertyChangedSignal, take two #51
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c18ed1d
let's try this again
AmaranthineCodices 82992d2
update lemur dependency
AmaranthineCodices 83cf6b0
fix an edge case
AmaranthineCodices fd1c553
test cases!
AmaranthineCodices 9ccf594
switch type to Change
AmaranthineCodices 5984955
update lemur
AmaranthineCodices 1455e60
will this fix the merge conflict?
AmaranthineCodices 42e2415
fix lemur again
AmaranthineCodices File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
local Change = {} | ||
|
||
local changeMetatable = { | ||
__tostring = function(self) | ||
return ("ChangeListener(%s)"):format(self.name) | ||
end | ||
} | ||
|
||
setmetatable(Change, { | ||
__index = function(self, propertyName) | ||
local changeListener = { | ||
type = Change, | ||
name = propertyName | ||
} | ||
|
||
setmetatable(changeListener, changeMetatable) | ||
Change[propertyName] = changeListener | ||
|
||
return changeListener | ||
end, | ||
}) | ||
|
||
return Change |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
return function() | ||
local Change = require(script.Parent.Change) | ||
|
||
it("should yield change listener objects when indexed", function() | ||
expect(Change.Text).to.be.ok() | ||
expect(Change.Selected).to.be.ok() | ||
end) | ||
|
||
it("should yield the same object when indexed again", function() | ||
local a = Change.Text | ||
local b = Change.Text | ||
|
||
expect(a).to.equal(b) | ||
end) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule lemur
updated
38 files
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It looks like files' trailing newlines keep getting shuffled there and back, I feel like I should normalize those.
In the meantime, do you have an EditorConfig plugin enabled for your editor?
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.
I do, but sometimes it doesn't work (see all the times my commits sometimes get spaces instead of tabs).
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.
What editor do you use? The one for Sublime Text seems to horrifically break the automatic indentation detection. :(
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.
VS Code and this extension.