[polari] appNotifications: Adjust for function removal in spidermonkey
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] appNotifications: Adjust for function removal in spidermonkey
- Date: Fri, 17 Mar 2017 09:18:40 +0000 (UTC)
commit 4a0f7edeaad69c84d7edd7a6e84d4e9c0774fb32
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Mar 16 19:27:42 2017 +0100
appNotifications: Adjust for function removal in spidermonkey
Number.toInteger() no longer exists in the spidermonkey engine gjs
was updated to, so use Math.floor() instead.
https://bugzilla.gnome.org/show_bug.cgi?id=780166
src/appNotifications.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/appNotifications.js b/src/appNotifications.js
index d1a6654..c7eb698 100644
--- a/src/appNotifications.js
+++ b/src/appNotifications.js
@@ -142,7 +142,7 @@ const GridOutput = new Lang.Class({
let numItems = items.length;
let numCols = Math.min(numItems, 4);
- let numRows = Number.toInteger(numItems / numCols) + numItems % numCols;
+ let numRows = Math.floor(numItems / numCols) + numItems % numCols;
let grid = new Gtk.Grid({ column_homogeneous: true,
row_spacing: 6,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]