diff options
author | thomascube <thomas@roundcube.net> | 2012-02-01 07:55:16 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2012-02-01 07:55:16 +0000 |
commit | 3a86e26768108bcd350a81582b8d631d307dd1c2 (patch) | |
tree | 39af175deb0f02282db862a4de68154c9b680619 /skins | |
parent | a4e71c5c389336852bcca8bc729f67f5ce13cdd0 (diff) |
Add static getter for splitter objects
Diffstat (limited to 'skins')
-rw-r--r-- | skins/larry/ui.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/skins/larry/ui.js b/skins/larry/ui.js index 1b03166c4..e870fe79b 100644 --- a/skins/larry/ui.js +++ b/skins/larry/ui.js @@ -817,6 +817,7 @@ function rcube_splitter(p) this.callback = p.callback; var me = this; + rcube_splitter._instances[this.id] = me; this.init = function() { @@ -1018,3 +1019,11 @@ function rcube_splitter(p) } // end class rcube_splitter +// static getter for splitter instances +rcube_splitter._instances = {}; + +rcube_splitter.get_instance = function(id) +{ + return rcube_splitter._instances[id]; +}; + |