From 38ba8b4a1c72da661d29acd46b875daa8e06e032 Mon Sep 17 00:00:00 2001 From: George Czabania Date: Sat, 13 Jul 2013 19:44:35 +1200 Subject: [PATCH] Fix for missing openContents object If openContents doesn't exist, it will not throw an error because it could not find openContents.securityLevel. --- lib/contents.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/contents.coffee b/lib/contents.coffee index d71a38e..7011b65 100644 --- a/lib/contents.coffee +++ b/lib/contents.coffee @@ -44,7 +44,7 @@ class Contents.Item !@decrypted securityLevel: -> - @detail().openContents.securityLevel || 'SL5' + @detail().openContents?.securityLevel || 'SL5' detail: -> return @_detail if @_detail