Skip to content

Commit 226d6a4

Browse files
committed
remove layers restriction
1 parent 7f15c4a commit 226d6a4

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

d2js/js.go

-6
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,6 @@ func jsParse(this js.Value, args []js.Value) interface{} {
162162
return string(str)
163163
}
164164

165-
if len(g.Layers) > 0 || len(g.Scenarios) > 0 || len(g.Steps) > 0 {
166-
ret := jsParseResponse{UserError: "layers, scenarios, and steps are not yet supported. Coming soon."}
167-
str, _ := json.Marshal(ret)
168-
return string(str)
169-
}
170-
171165
for _, o := range g.Objects {
172166
if (o.Attributes.Top == nil) != (o.Attributes.Left == nil) {
173167
ret := jsParseResponse{UserError: `keywords "top" and "left" currently must be used together`}

0 commit comments

Comments
 (0)