Skip to content

Commit

Permalink
Breaking from loop after document id was found
Browse files Browse the repository at this point in the history
  • Loading branch information
marekhrabe committed Apr 25, 2014
1 parent 222833f commit 734b82d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/jsx/getGuides.jsx
Expand Up @@ -10,6 +10,7 @@ var guides = [];
for (var i = 0; i < app.documents.length; i++) {
if (app.documents[i].id === params.documentId) {
guides = app.documents[i].guides;
break;
}
}

Expand Down

0 comments on commit 734b82d

Please sign in to comment.