From a0230609f5d712c286e70a4d0315877525f306f6 Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Fri, 31 Jul 2015 13:38:04 -0700 Subject: [PATCH] fix resultant javascript error on certain pages --- public/js/main_0.0.3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/main_0.0.3.js b/public/js/main_0.0.3.js index 10eede50759..812fe65bb3a 100644 --- a/public/js/main_0.0.3.js +++ b/public/js/main_0.0.3.js @@ -5,7 +5,7 @@ $(document).ready(function() { } $(document).ready(function() { - if ($('#reset-button').html() != undefined) { + if (typeof editor !== 'undefined') { $('#reset-button').on('click', resetEditor); } });