Parcourir la source

boot.js: jQuery.allowJavaScriptCalls fix

Herbert Vojčík il y a 11 ans
Parent
commit
09f5afb82f
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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;