|
@@ -39,7 +39,8 @@ Lungo.Aside = do (lng = Lungo) ->
|
|
|
_callback = callback
|
|
_callback = callback
|
|
|
aside_transition = lng.Element.Cache.aside.data(C.TRANSITION.ATTR) or "left"
|
|
aside_transition = lng.Element.Cache.aside.data(C.TRANSITION.ATTR) or "left"
|
|
|
if lng.DEVICE is C.DEVICE.PHONE
|
|
if lng.DEVICE is C.DEVICE.PHONE
|
|
|
- lng.Element.Cache.section.removeClass("aside").data("aside-#{aside_transition}", "hide")
|
|
|
|
|
|
|
+ lng.Element.Cache.section.removeClass("aside").removeClass("aside-right")
|
|
|
|
|
+ lng.Element.Cache.section.data("aside-#{aside_transition}", "hide")
|
|
|
else
|
|
else
|
|
|
lng.dom(".aside").removeClass("aside").addClass("asideHidding")
|
|
lng.dom(".aside").removeClass("aside").addClass("asideHidding")
|
|
|
lng.Element.Cache.aside = null
|
|
lng.Element.Cache.aside = null
|
|
@@ -72,7 +73,10 @@ Lungo.Aside = do (lng = Lungo) ->
|
|
|
if _callback then _callback.call _callback
|
|
if _callback then _callback.call _callback
|
|
|
_callback = undefined
|
|
_callback = undefined
|
|
|
else
|
|
else
|
|
|
- section.removeAttr("data-aside-#{aside_transition}").addClass "aside"
|
|
|
|
|
|
|
+ unless aside_transition.indexOf("right") is -1
|
|
|
|
|
+ section.removeAttr("data-aside-#{aside_transition}").addClass "aside-right"
|
|
|
|
|
+ else
|
|
|
|
|
+ section.removeAttr("data-aside-#{aside_transition}").addClass "aside"
|
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
###
|