Solved style problems identified by jshint
bzr revid: nicolas.vanhoren@openerp.com-20130820151241-1oi29vxm8iq34v8x
This commit is contained in:
parent
1d5f220d12
commit
89b3edad09
|
@ -2,7 +2,7 @@ module.exports = function(grunt) {
|
||||||
|
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
jshint: {
|
jshint: {
|
||||||
src: ['static/js/*.js'],
|
src: ['static/src/js/*.js'],
|
||||||
options: {
|
options: {
|
||||||
sub: true, //[] instead of .
|
sub: true, //[] instead of .
|
||||||
evil: true, //eval
|
evil: true, //eval
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
|
|
||||||
openerp.im = function(instance) {
|
(function() {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
var instance = openerp;
|
||||||
|
|
||||||
|
openerp.im = {};
|
||||||
|
|
||||||
var USERS_LIMIT = 20;
|
var USERS_LIMIT = 20;
|
||||||
|
|
||||||
|
@ -151,4 +156,4 @@ openerp.im = function(instance) {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
})();
|
|
@ -26,8 +26,6 @@ function declare($, _, openerp) {
|
||||||
});
|
});
|
||||||
|
|
||||||
var _t = openerp._t;
|
var _t = openerp._t;
|
||||||
|
|
||||||
var im_common = {};
|
|
||||||
|
|
||||||
var ERROR_DELAY = 5000;
|
var ERROR_DELAY = 5000;
|
||||||
|
|
||||||
|
@ -283,7 +281,7 @@ function declare($, _, openerp) {
|
||||||
},
|
},
|
||||||
init: function(parent, user, me, options) {
|
init: function(parent, user, me, options) {
|
||||||
this._super(parent);
|
this._super(parent);
|
||||||
this.options = options
|
this.options = options;
|
||||||
this.me = me;
|
this.me = me;
|
||||||
this.user = user;
|
this.user = user;
|
||||||
this.user.add_watcher();
|
this.user.add_watcher();
|
||||||
|
|
Loading…
Reference in New Issue