CRM-14383 - Add CRM.$ and CRM._ noconflict objects
authorColeman Watts <coleman@civicrm.org>
Tue, 25 Mar 2014 19:01:45 +0000 (15:01 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 25 Mar 2014 19:25:05 +0000 (15:25 -0400)
js/noconflict.js

index 7284269128a694c66f861b80f834a2b443bc996d..d52906a31e5f3619926c61b685daec562469dfee 100644 (file)
@@ -1 +1,3 @@
-var cj = jQuery.noConflict(true);
+window.CRM || (window.CRM = {});
+window.cj = CRM.$ = jQuery.noConflict(true);
+CRM._ = _.noConflict();