Skip to content

Commit f4739e6

Browse files
committed
scope style objects to update function
1 parent 2db456d commit f4739e6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Contents/Sketch/typography.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
var applyTypography = function (newStyles, sharedStyles) {
22

3-
var existingStyleObjects = [sharedStyles objects];
4-
53
var alignmentEnum = Object.freeze({
64
'left': 0,
75
'right': 1,
@@ -44,6 +42,6 @@ var applyTypography = function (newStyles, sharedStyles) {
4442
textLayer.setTextColor(color);
4543
}
4644

47-
checkForMatchingStyleAndMerge(existingStyleObjects, style.Style, textLayer.style() );
45+
checkForMatchingStyleAndMerge(sharedStyles.objects(), style.Style, textLayer.style() );
4846
}
4947
}

0 commit comments

Comments
 (0)