changeset 416:c4c8214fb0b2

Simplify dom check
author nanaya <me@myconan.net>
date Mon, 14 Sep 2015 14:48:36 +0900
parents 753395ccc4d2
children 080dd141898c
files app/assets/javascripts/application.coffee
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/assets/javascripts/application.coffee	Mon Sep 14 14:23:23 2015 +0900
+++ b/app/assets/javascripts/application.coffee	Mon Sep 14 14:48:36 2015 +0900
@@ -61,7 +61,7 @@
 
 
 $(document).on "ready", ->
-  return if $(".js-showing-paste").length < 1
+  return unless $(".js-showing-paste").length
 
   format = window.location.hash.slice(1)
   $(".js-show-tab-#{format}").click()