Skip to content

Commit

Permalink
v2.7.1
Browse files Browse the repository at this point in the history
fixed issue in cycle macros event emitter
  • Loading branch information
ChapelR committed Jan 22, 2021
1 parent 404cc76 commit 7c6029f
Show file tree
Hide file tree
Showing 28 changed files with 32 additions and 28 deletions.
4 changes: 4 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

[Back to the main page](./README.md).

### January 22, 2021 (v2.7.1)

- **[Update]** Fixed the `:cycle-change` event so that it is now properly emitted.

### November 24, 2020 (v2.7.0)

- **[New]** Added the `<<disable>>` macro.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "custom-macros-for-sugarcube-2",
"version": "2.7.0",
"version": "2.7.1",
"description": "Collection of custom macros and systems for Twine/SugarCube2.",
"main": "build.js",
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/cycles.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
}
if (cache !== this.current()) {
// the phase changed
Cycle._emit('change');
Cycle._emit(this, 'change');
}
return this;
},
Expand Down
2 changes: 1 addition & 1 deletion scripts/minified/articles.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/minified/continue.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/minified/css-macro.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions scripts/minified/cycles.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/minified/dialog-api-macro-set.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/minified/disable.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/minified/done.min.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// done.min.js, for SugarCube 2, by Chapel
// v1.0.1, 2020-11-24, 9f958db927f80b0101af14e286ea0ad142026739
// v1.0.1, 2021-01-22, 404cc7678295ca61a8b0b8bc3fa5d54dba6ac858
;!function(){var a=1;Macro.add("done",{skipArgs:!0,tags:null,handler:function(){var n=this.payload[0].contents.trim();""!==n&&(postdisplay[":chapel-done-macro-"+a]=function(a){delete postdisplay[a],$.wiki(n)},a++)}})}();
// end done.min.js
Loading

0 comments on commit 7c6029f

Please sign in to comment.