Skip to content

Commit

Permalink
fix actor property
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouzi committed Nov 2, 2015
1 parent 4e8451e commit 7693323
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/theater.min.js

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

2 changes: 2 additions & 0 deletions src/Actor.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export default function (actorName, props = {}, callback = null) {
}

return {
$element,

get displayValue () {
return displayValue
},
Expand Down
2 changes: 2 additions & 0 deletions test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
var theater = theaterJS({ locale: 'ru' })

theater
.on('type:start, erase:start', function () { theater.getCurrentActor().$element.style.backgroundColor = 'yellow' })
.on('type:end, erase:end', function () { theater.getCurrentActor().$element.style.backgroundColor = 'transparent' })
.addActor('vader', 0)
.addActor('luke', 1)
.addScene('vader:<strong>Luke</strong>...', '<br/>Please...', 500)
Expand Down

0 comments on commit 7693323

Please sign in to comment.