Skip to content

Commit 9461b33

Browse files
committed
Fix Bounds.clone
1 parent 915590e commit 9461b33

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/geoscript/js/geom/Bounds.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public Bounds(Scriptable scope, NativeArray array) {
143143
/**
144144
* Constructor from ReferencedEnvelope.
145145
* @param scope
146-
* @param crs
146+
* @param refEnv
147147
*/
148148
public Bounds(Scriptable scope, ReferencedEnvelope refEnv) {
149149
this.setParentScope(scope);
@@ -291,9 +291,9 @@ public NativeArray toArray() {
291291
Scriptable scope = getParentScope();
292292
return (NativeArray) cx.newArray(scope, new Object[] {getMinX(), getMinY(), getMaxX(), getMaxY()});
293293
}
294-
295-
@JSFunction
296-
public Bounds clone() {
294+
295+
@JSFunction("clone")
296+
public Bounds cloner() {
297297
ReferencedEnvelope clone = new ReferencedEnvelope(refEnv);
298298
return new Bounds(getParentScope(), clone);
299299
}

0 commit comments

Comments
 (0)