commit | 38ed5dc6c1e6745a56c3de01f94bd8fcb54d554e | [log] [tgz] |
---|---|---|
author | Akron <nils@diewald-online.de> | Thu Oct 01 17:33:00 2020 +0200 |
committer | Akron <nils@diewald-online.de> | Thu Oct 01 17:33:00 2020 +0200 |
tree | f83805c47ec9ae4f78929e43c5961e60f13f6884 | |
parent | ba09ed21084d493c1c765c0a22c2238ef489c5a4 [diff] |
Added clear() method to state objects to disassociate other objects Change-Id: I2e46c1c55177b9261a243dea0585d051c402a8b6
diff --git a/dev/js/src/state.js b/dev/js/src/state.js index d561a8b..78cd4cc 100644 --- a/dev/js/src/state.js +++ b/dev/js/src/state.js
@@ -73,6 +73,13 @@ */ associates : function () { return this._assoc.length; + }, + + /** + * Clear all associated objects + */ + clear : function () { + return this._assoc = []; } } });