Przeglądaj źródła

boot.js: jQuery.allowJavaScriptCalls fix

Herbert Vojčík 11 lat temu
rodzic
commit
09f5afb82f
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      js/boot.js

+ 2 - 2
js/boot.js

@@ -979,8 +979,8 @@ function MessageSendBrik(brikz, st) {
 		return st.send(st.JSObjectProxy._on_(receiver), selector, args);
 	}
 
-	if(this.jQuery) {
-		this.jQuery.allowJavaScriptCalls = true;
+	if(typeof jQuery !== "undefined") {
+		jQuery.allowJavaScriptCalls = true;
 	}
 
 	this.messageNotUnderstood = messageNotUnderstood;