From fc5bb87a7c492be640c77fb7254580724a2bbc15 Mon Sep 17 00:00:00 2001
From: Rob Loach <robloach@gmail.com>
Date: Mon, 26 Oct 2015 10:25:41 -0700
Subject: [PATCH] Fix to make sure Panels object exists before use

---
 js/layout.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/js/layout.js b/js/layout.js
index e54fd02..2aeac71 100644
--- a/js/layout.js
+++ b/js/layout.js
@@ -5,6 +5,7 @@
  */
 
 (function ($) {
+  Drupal.Panels = Drupal.Panels || {};
   Drupal.Panels.Layout = {};
   Drupal.Panels.Layout.autoAttach = function() {
     $('div.form-item div.layout-icon').click(function() {
