Skip to content

Commit

Permalink
The boundingBox attribute in DetectedText should be DOMRectReadOnly (#41
Browse files Browse the repository at this point in the history
)

There is no reason to allow developers to overwrite `boudingBox`'s properties.
So the attribute should be DOMRectReadOnly.
  • Loading branch information
codeimpl authored and yellowdoge committed Jun 14, 2018
1 parent 2af142a commit 4c39f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text.bs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Example implementations of Text code detection are e.g. <a href="https://develop
[
Constructor,
] interface DetectedText {
[SameObject] readonly attribute DOMRect boundingBox;
[SameObject] readonly attribute DOMRectReadOnly boundingBox;
[SameObject] readonly attribute DOMString rawValue;
[SameObject] readonly attribute FrozenArray&lt;Point2D> cornerPoints;
};
Expand Down

0 comments on commit 4c39f35

Please sign in to comment.