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:
parent
99559c9c0a
commit
74c4f61ae3
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue