Merge pull request #11461 from mattwire/tax_calcs_on_edit_contribution
[civicrm-core.git] / js / crm.designerapp.js
index d0a0c1aa33a9541c49d82cbe00a9a0219e6a0c49..fef007d2315144122bc59ae147d15f2a47dd19f3 100644 (file)
@@ -1,4 +1,4 @@
-(function ($, _) {
+(function ($, _, Backbone) {
   $(function () {
     /**
      * FIXME we depend on this being a global singleton, mainly to facilitate vents
@@ -16,7 +16,7 @@
      * @see CRM-12188
      */
     CRM.designerApp.clearPreviewArea = function () {
-      $('.crm-profile-selector-preview-pane > .crm-container-snippet').each(function () {
+      $('.crm-profile-selector-preview-pane > *').each(function () {
         var parent = $(this).parent();
         CRM.designerApp.DetachedProfiles.push({
           parent: parent,
@@ -30,4 +30,4 @@
       });
     };
   });
-})(CRM.$, CRM._);
+})(CRM.$, CRM._, CRM.BB);