(tint,event)
| 38 | } |
| 39 | |
| 40 | setTint(tint,event){ |
| 41 | if(event){ |
| 42 | this.on(event, function(e){ |
| 43 | this.tint=tint; |
| 44 | }) |
| 45 | |
| 46 | } else { |
| 47 | |
| 48 | this.tint=tint; |
| 49 | this.on('mouseover', function(e){ |
| 50 | this.tint=tint; |
| 51 | }) |
| 52 | |
| 53 | this.on('mouseout', function(e){ |
| 54 | this.tint=tint; |
| 55 | }) |
| 56 | |
| 57 | this.on('mousedown', function(e){ |
| 58 | this.tint=tint; |
| 59 | }) |
| 60 | |
| 61 | this.on('mouseup', function(e){ |
| 62 | this.tint=tint; |
| 63 | }) |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | tintGray(){ |
| 68 | this.setTint(tintGray); |
no outgoing calls
no test coverage detected