diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2013-07-25 12:33:01 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2013-07-25 12:33:01 +0200 |
| commit | c767a0d34c3bb451246e2d546f6c602aae50d245 (patch) | |
| tree | 28188c803a98451eebf7b6d1af437aa186e065ec /addons/web/static/src/js/pyeval.js | |
| parent | 42e493e73efd603002feb92703a82f34c6bc6aea (diff) | |
Added semicolons
bzr revid: nicolas.vanhoren@openerp.com-20130725103301-65nld10p1if7k0zt
Diffstat (limited to 'addons/web/static/src/js/pyeval.js')
| -rw-r--r-- | addons/web/static/src/js/pyeval.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/addons/web/static/src/js/pyeval.js b/addons/web/static/src/js/pyeval.js index 02d828001c0..06dc7ae1815 100644 --- a/addons/web/static/src/js/pyeval.js +++ b/addons/web/static/src/js/pyeval.js @@ -97,7 +97,7 @@ openerp.web.pyeval = function (instance) { divmod(n, 365, function (_n1, n) { n1 = _n1; n0 = n; - }) + }); }); }); }); @@ -139,7 +139,7 @@ openerp.web.pyeval = function (instance) { if (microsecond < 0 || microsecond > 999999) { divmod(microsecond, 1000000, function (carry, ms) { microsecond = ms; - second += carry + second += carry; }); } if (second < 0 || second > 59) { @@ -152,13 +152,13 @@ openerp.web.pyeval = function (instance) { divmod(minute, 60, function (carry, m) { minute = m; hour += carry; - }) + }); } if (hour < 0 || hour > 23) { divmod(hour, 24, function (carry, h) { hour = h; day += carry; - }) + }); } // That was easy. Now it gets muddy: the proper range for day // can't be determined without knowing the correct month and year, @@ -170,7 +170,7 @@ openerp.web.pyeval = function (instance) { divmod(month-1, 12, function (carry, m) { month = m + 1; year += carry; - }) + }); } // Now only day can be out of bounds (year may also be out of bounds // for a datetime object, but we don't care about that here). @@ -247,7 +247,7 @@ openerp.web.pyeval = function (instance) { }); divmod(seconds, 24*3600, function (days, seconds) { d += days; - s += seconds + s += seconds; }); // seconds isn't referenced again before redefinition @@ -358,7 +358,7 @@ openerp.web.pyeval = function (instance) { return py.float.fromJSON( this.days * 86400 + this.seconds - + this.microseconds / 1000000) + + this.microseconds / 1000000); }, __nonzero__: function () { return (!!this.days || !!this.seconds || !!this.microseconds) @@ -466,7 +466,7 @@ openerp.web.pyeval = function (instance) { return py.float.fromJSON(ymd2ord(this.year, this.month, this.day)); }, fromJSON: function (year, month, day) { - return py.PY_call(datetime.date, [year, month, day]) + return py.PY_call(datetime.date, [year, month, day]); } }); /** @@ -505,7 +505,7 @@ openerp.web.pyeval = function (instance) { var args = _.map(('year month day hour minute second microsecond ' + 'years months weeks days hours minutes secondes microseconds ' + 'weekday leakdays yearday nlyearday').split(' '), function (arg) { - return [arg, null] + return [arg, null]; }); args.unshift('*'); var relativedelta = py.type('relativedelta', null, { @@ -808,7 +808,7 @@ openerp.web.pyeval = function (instance) { case 'groupbys': return eval_groupbys(object, context); } - throw new Error("Unknow evaluation type " + type) + throw new Error("Unknow evaluation type " + type); }; var eval_arg = function (arg) { @@ -863,5 +863,5 @@ openerp.web.pyeval = function (instance) { }}); } }, 0); }); - } + }; }; |
