on xenial help sign in
Work around a crasher in JS
commit87f761d7f894f72885df2986bdf56a4517377eb4 authorMichał Sawicz <michal.sawicz@canonical.com> dateMon 18 Aug 2014, 17:06 (12 years ago) parent024b7b4
1 file changed+5−1
plugins/Utils/Style.js+5−1
plugins/Utils/Style.js+5−1
@@ -22,7 +22,11 @@
2222 */
2323function luminance() {
2424 var sum = 0;
25− for (var k in arguments) {
25+ // TODO this was originally
26+ // for (var k in arguments) {
27+ // but for some unkown reason was causing crashes in testDash/testDashContent
28+ // investigate when we have some time
29+ for (var k = 0; k < arguments.length; ++k) {
2630 // only way to convert string to color
2731 var c = Qt.lighter(arguments[k], 1.0);
2832