(obj, before, after, t, r, b, l)
| 40 | } |
| 41 | |
| 42 | function setTopRightBottomLeft(obj, before, after, t, r, b, l) { |
| 43 | obj[before + 'Top' + (after || '')] = t; |
| 44 | obj[before + 'Right' + (after || '')] = r; |
| 45 | obj[before + 'Bottom' + (after || '')] = b; |
| 46 | obj[before + 'Left' + (after || '')] = l; |
| 47 | return obj; |
| 48 | } |
| 49 | |
| 50 | function setTopRightBottomLeftOr(x, obj, before, after, t, r, b, l) { |
| 51 | if (!x) return setTopRightBottomLeft(obj, before, after, t, r, b, l); |
no outgoing calls
no test coverage detected