ccgus / CocoaScript

JavaScript + the Cocoa frameworks, and then ObjC brackets show up to party as well.
Other
618 stars 58 forks source link

fix typo in property getter selector #64

Closed mathieudutour closed 5 years ago

mathieudutour commented 5 years ago

Quick repro in sketch:

let sketch = require('sketch')
let document = sketch.getSelectedDocument()

console.log(document.sketchObject.documentEdited)

used to throws Unable to parse method encoding for method documentEdited: of class MSDocument.

It will now print a boolean.

Note that properties aren't methods and as such, don't need to be called. It shouldn't break anything because methods are still matched first.

ccgus commented 5 years ago

Thanks for the patch!