OLD | NEW |
1 | 1 (function() { |
2 (function() { | |
3 var Utility = { | 2 var Utility = { |
4 cssColorWithAlpha: function(cssColor, alpha) { | 3 cssColorWithAlpha: function(cssColor, alpha) { |
5 var parts = cssColor.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/); | 4 var parts = cssColor.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/); |
6 | 5 |
7 if (typeof alpha == 'undefined') { | 6 if (typeof alpha == 'undefined') { |
8 alpha = 1; | 7 alpha = 1; |
9 } | 8 } |
10 | 9 |
11 if (!parts) { | 10 if (!parts) { |
12 return 'rgba(255, 255, 255, ' + alpha + ')'; | 11 return 'rgba(255, 255, 255, ' + alpha + ')'; |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 }, | 555 }, |
557 | 556 |
558 _holdDownChanged: function(holdDown) { | 557 _holdDownChanged: function(holdDown) { |
559 if (holdDown) { | 558 if (holdDown) { |
560 this.downAction(); | 559 this.downAction(); |
561 } else { | 560 } else { |
562 this.upAction(); | 561 this.upAction(); |
563 } | 562 } |
564 } | 563 } |
565 }); | 564 }); |
566 })(); | 565 })(); |
OLD | NEW |