Layout.getImage (name, fallback) |
retrieve an image from ImageMgr
this method walks up the hierarchy of layout objects
until it finds an image, otherwise returns null
|
Sourcecode in Layout/objectFunctions.js:
1: function getImage(name, fallback) { 2: var handler = this; 3: while (handler) { 4: if (handler.images.get(name)) 5: return handler.images.get(name); 6: if (handler.images.get(fallback)) 7: handler.images.get(fallback) 8: handler = handler.parent; 9: } 10: return null; 11: } |