~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-06 17:11:54 UTC
  • mfrom: (14565.3.17 inline_help_907443)
  • Revision ID: launchpad@pqm.canonical.com-20120106171154-fjgapb91cd49zzih
[r=deryck][bug=907443] Port the inlinehelp javascript from mochikit
        to YUI in lp.app.inlinehelp.

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);