[fix] move socket init inside app init

This commit is contained in:
Rushabh Mehta 2015-08-21 16:36:33 +05:30
parent 8c41204877
commit c6317148bc
2 changed files with 1 additions and 2 deletions

View file

@ -23,6 +23,7 @@ frappe.Application = Class.extend({
},
startup: function() {
frappe.model.init();
frappe.socket.init();
this.load_bootinfo();
this.make_nav_bar();
this.set_favicon();

View file

@ -125,8 +125,6 @@ frappe.socket = {
}
}
$(frappe.socket.init);
frappe.provide("frappe.realtime");
frappe.realtime.on = function(event, callback) {
frappe.socket.socket.on(event, callback);