~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/javascript/overlay/overlay.js

  • Committer: Rick Harding
  • Date: 2012-01-06 12:34:37 UTC
  • mto: This revision was merged to the branch mainline in revision 14647.
  • Revision ID: rick.harding@canonical.com-20120106123437-ebd5ltlnjgph600x
Update user of inline help that bypassed the usual init methods

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    * @class PrettyOverlay
32
32
    * @namespace lazr
33
33
    */
34
 
    var PrettyOverlay = function() {
 
34
    var PrettyOverlay = function(cfg) {
35
35
        // Check whether the callsite has set a zIndex... if not, set it
36
36
        // to 1000, as the YUI.overlay default is zero.
37
 
        if (arguments[0] && arguments[0].zIndex === undefined){
 
37
        if (cfg && arguments[0].zIndex === undefined){
38
38
            arguments[0].zIndex = 1000;
39
39
        }
40
40
        PrettyOverlay.superclass.constructor.apply(this, arguments);