Fix syntax for older gnome-shell versions

This commit is contained in:
Charles Gagnon
2019-05-04 22:30:06 -04:00
parent bf785c6179
commit 073c8daa9f
2 changed files with 3 additions and 3 deletions

View File

@@ -780,7 +780,7 @@ var dtpSecondaryPanel = Utils.defineClass({
}
},
vfunc_get_preferred_width(forHeight) {
vfunc_get_preferred_width: function(forHeight) {
if (this.delegate) {
return [0, this.delegate.monitor.width];
}

View File

@@ -398,7 +398,7 @@ var ColorUtils = {
else
s = 0;
return {h, s, v};
return {h: h, s: s, v: v};
}
};
@@ -568,7 +568,7 @@ var DominantColorExtractor = defineClass({
*
* @return [];
*/
_resamplePixels (pixels, resampleX, resampleY) {
_resamplePixels: function (pixels, resampleX, resampleY) {
let resampledPixels = [];
// computing the limit outside the for (where it would be repeated at each iteration)
// for performance reasons