From 4a35efea24a50c8731bb4cf9090ce8086965e5ea Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sat, 3 Oct 2015 17:21:36 -0400 Subject: [PATCH] #152 for child nodes --- lib/persona.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/persona.js b/lib/persona.js index 1bef4b8..14530bf 100644 --- a/lib/persona.js +++ b/lib/persona.js @@ -137,7 +137,8 @@ $(document).ready(function() { slideout.on('open', openingMenuAndLoad); slideout.on('touchmove', function(target) { - if (target && $(target).is('code')) { + var $target = $(target); + if ($target.length && ($target.is('code') || $target.parents('code').length)) { slideout._preventOpen = true; } });