Skip to content

Commit

Permalink
10.12
Browse files Browse the repository at this point in the history
  • Loading branch information
utom committed Sep 13, 2016
1 parent 940f4d2 commit 3f0adf6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Sketch Measure.sketchplugin/Contents/Sketch/library/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,19 +494,18 @@ SM.extend({
container = container || this.current,
items;

if( (container.class && container.class() == __NSArrayI) ){
items = container;
}
else if(container.pages){
if(container.pages){
items = container.pages();
}
else if( this.is( container, MSSharedStyleContainer ) || this.is( container, MSSharedTextStyleContainer ) ){
items = container.objectsSortedByName();
}
else{
else if( container.children ){
items = container.children();
}

else{
items = container;
}
var queryResult = items.filteredArrayUsingPredicate(predicate);

if(returnArray) return queryResult;
Expand Down

0 comments on commit 3f0adf6

Please sign in to comment.