Skip to content

Commit 74fbc50

Browse files
Merge pull request #918 from sketch-hq/merge-sketch-module-changes-98
Copying changes from Sketch/Modules/SketchAPI
2 parents 6decf4b + e2f9012 commit 74fbc50

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Source/dom/layers/__tests__/Group.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* globals expect, test */
22
import { canBeLogged } from '../../../test-utils'
3-
import { Group, Text, Shape, Rectangle, SmartLayout } from '../..'
3+
import { Group, Text, Rectangle, SmartLayout } from '../..'
44

55
test('should return the layers and can iterate through them', (_context, document) => {
66
const page = document.selectedPage

Source/dom/style/Text.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function updateAttributes(_object, fn) {
5656
let textStyle = _object.textStyle()
5757

5858
if (!textStyle) {
59-
textStyle = MSTextStyle.styleWithAttributes(
59+
textStyle = MSTextStyle.alloc().initWithAttributes(
6060
MSDefaultTextStyle.defaultTextStyle()
6161
)
6262
_object.setTextStyle(textStyle)
@@ -229,7 +229,7 @@ export function defineTextStyleProperties(Style) {
229229
let textStyle = this._object.textStyle()
230230

231231
if (!textStyle) {
232-
textStyle = MSTextStyle.styleWithAttributes({})
232+
textStyle = MSTextStyle.alloc().initWithAttributes({})
233233
this._object.setTextStyle(textStyle)
234234
}
235235

0 commit comments

Comments
 (0)