Skip to content

Commit

Permalink
👕 fix magic number
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincharity committed Oct 26, 2016
1 parent e76566b commit a8234d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/flickity.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,11 +484,12 @@ export class FlickityService {
*/
_getFlickityIndex(id) {
let foundIndex;
const NOT_FOUND = -1;

// If no instances exist
if (!this.instances.length) {

foundIndex = -1;
foundIndex = NOT_FOUND;

} else {
// if instances do exist
Expand Down

0 comments on commit a8234d9

Please sign in to comment.