diff --git a/context_ui/context_ui.js b/context_ui/context_ui.js
index e85407a..308164f 100644
--- a/context_ui/context_ui.js
+++ b/context_ui/context_ui.js
@@ -98,7 +98,7 @@ Drupal.behaviors.context_ui = { attach: function(context) {
   });
 
   // Initialize context editor.
-  if (jQuery().pageEditor) {
+  if ($().pageEditor) {
     $('form.context-editor:not(.context-ui-processed)')
       .addClass('context-ui-processed')
       .pageEditor()
