on xenial help sign in
Merge lp:~saviq/unity8/preview-customizations
commitcd61c2232c351ca8b8b3f7315727bc363ee752f2 authorMichał Sawicz <michal.sawicz@canonical.com> dateMon 18 Aug 2014, 17:08 (12 years ago) parent3e1188f18d67d4
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