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({
|
||||
jshint: {
|
||||
src: ['static/js/*.js'],
|
||||
src: ['static/src/js/*.js'],
|
||||
options: {
|
||||
sub: true, //[] instead of .
|
||||
evil: true, //eval
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
|
||||
openerp.im = function(instance) {
|
||||
(function() {
|
||||
"use strict";
|
||||
|
||||
var instance = openerp;
|
||||
|
||||
openerp.im = {};
|
||||
|
||||
var USERS_LIMIT = 20;
|
||||
|
||||
|
@ -151,4 +156,4 @@ openerp.im = function(instance) {
|
|||
},
|
||||
});
|
||||
|
||||
}
|
||||
})();
|
|
@ -26,8 +26,6 @@ function declare($, _, openerp) {
|
|||
});
|
||||
|
||||
var _t = openerp._t;
|
||||
|
||||
var im_common = {};
|
||||
|
||||
var ERROR_DELAY = 5000;
|
||||
|
||||
|
@ -283,7 +281,7 @@ function declare($, _, openerp) {
|
|||
},
|
||||
init: function(parent, user, me, options) {
|
||||
this._super(parent);
|
||||
this.options = options
|
||||
this.options = options;
|
||||
this.me = me;
|
||||
this.user = user;
|
||||
this.user.add_watcher();
|
||||
|
|
Loading…
Reference in New Issue