0
0
Fork 0
mirror of https://gitlab.com/Oreolek/salet-module.git synced 2024-06-26 03:50:49 +03:00

fcall fix

This commit is contained in:
Alexander Yakovlev 2016-12-08 08:36:56 +07:00
parent 70d8f80c5d
commit b5fc0944bc
3 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{
"name": "salet",
"version": "1.6.4",
"version": "1.6.5",
"description": "A general client-side framework for cybertext interactive fiction games.",
"keywords": ["ifiction", "interactive fiction", "games", "coffee-script", "text", "menu"],
"homepage": "http://salet.oreolek.ru",

View file

@ -6,7 +6,7 @@ There is only one instance of this class.
###
class Salet
constructor: (spec) ->
@version = "1.6.4"
@version = "1.6.5"
@character = new Character
# REDEFINE THIS IN YOUR GAME

View file

@ -280,7 +280,7 @@ class SaletView
content = ""
if ways then for way in ways
if salet.rooms[way]?
title = salet.rooms[way].title.fcall(name)
title = salet.rooms[way].title.fcall(this, name)
content += "<li class='nav-item'><a class='nav-link' href='#{way}'>#{title}</a></li>"
@replace(content, "#ways")
@showBlock(".ways #ways_hint")