Open GoogleCodeExporter opened 9 years ago
The callBack function is called 4 times (the number of scripts in array times)
Original comment by syt...@gmail.com
on 12 Jul 2013 at 11:18
The solution that I have for this problem is:
$(document).ready(function () {
$.struts2_jquery.require("portal/portal.js", function () {
$.struts2_jquery.require("portal/atmosphere.js", function () {
$.struts2_jquery.require("javascript/profile/rtc_adapter.js", function () {
$.struts2_jquery.require("javascript/profile/chat_portal.js", function () {
$.struts2_jquery.require("javascript/profile/jquery.balloon.js", function () {
portal.find().send('connect', {
id: <s:property value="userFromId"/>,
browser: navigator.userAgent
}, function () {
console.log("connected");
});
}, "/");
}, "/");
}, "/");
}, "/");
}, "/");
});
Original comment by syt...@gmail.com
on 12 Jul 2013 at 11:22
Original comment by johgep
on 12 Jul 2013 at 9:22
Original issue reported on code.google.com by
syt...@gmail.com
on 11 Jul 2013 at 8:50