Ver código fonte

boot.js: jQuery.allowJavaScriptCalls fix

Herbert Vojčík 11 anos atrás
pai
commit
09f5afb82f
1 arquivos alterados com 2 adições e 2 exclusões
  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;