Browse Source

Merge pull request #125 from ChrisBrownie55/patch-1

Add break statements to switch
pull/123/merge v2.7.1
James Cryer 7 years ago committed by GitHub
parent
commit
b9b31a0e7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 24
      resemble.js

24
resemble.js

@ -808,12 +808,24 @@ URL: https://github.com/Huddle/Resemble.js
function applyIgnore(api, ignore) { function applyIgnore(api, ignore) {
switch (ignore) { switch (ignore) {
case 'nothing': api.ignoreNothing(); case 'nothing':
case 'less': api.ignoreLess(); api.ignoreNothing();
case 'antialiasing': api.ignoreAntialiasing(); break;
case 'colors': api.ignoreColors(); case 'less':
case 'alpha': api.ignoreAlpha(); api.ignoreLess();
default: throw new Error('Invalid ignore: ' + ignore); break;
case 'antialiasing':
api.ignoreAntialiasing();
break;
case 'colors':
api.ignoreColors();
break;
case 'alpha':
api.ignoreAlpha();
break;
default:
throw new Error('Invalid ignore: ' + ignore);
break;
} }
} }

Loading…
Cancel
Save