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

hideBlock now hides, not removes a block

DOM removal is a dangerous default especially for a "hide"
function.
This commit is contained in:
Alexander Yakovlev 2016-11-18 17:34:39 +07:00
parent 99559c9c0a
commit 74c4f61ae3
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "salet",
"version": "1.5.3",
"version": "1.5.4",
"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

@ -271,7 +271,7 @@ class SaletView
# A function to hide a block
# @param block - jQuery object or selector to hide
# @param remove - whether to remove the block from DOM afterwards
@hideBlock = (block, remove = true) ->
@hideBlock = (block, remove = false) ->
block = jQuery(block)
if block.is(':hidden')
return true