LayoutImageMgr.mergeImages ()
returns additional and default images of this layout packed into a single Array (items sorted by createtime, additional images override those of the parent layout)

  • Returns
    Array containing Image HopObjects
Sourcecode in LayoutImageMgr/objectFunctions.js:
1:   function mergeImages() {
2:      var coll = [];
3:      // object to store the already added image aliases
4:      // used to avoid duplicate images in the list
5:      var keys = {};
6:   
7:      // private method to add a custom skin
8:      var addImages = function(mgr) {
9:         var size = mgr.size();
10:        for (var i=0;i<size;i++) {
11:           var img = mgr.get(i);
12:           var key = img.alias;
13:           if (!keys[key]) {
14:              keys[key] = img;
15:              coll.push(img);
16:           }
17:        }
18:     }
19:     var layout = this._parent;
20:     while (layout) {
21:        addImages(layout.images);
22:        layout = layout.parent;
23:     }
24:     coll.sort(new Function("a", "b", "return b.createtime - a.createtime"));
25:     return coll;
26:  }