~ubuntu-branches/ubuntu/raring/venkman/raring

« back to all changes in this revision

Viewing changes to chrome/content/venkman/view-manager.js

  • Committer: Bazaar Package Importer
  • Author(s): Mike Hommey
  • Date: 2006-11-25 13:09:12 UTC
  • mfrom: (2.1.5 feisty)
  • Revision ID: james.westby@ubuntu.com-20061125130912-lf5wuz22ijh0k8ed
Tags: 0.9.87-6
debian/postinst: Don't invoque chrome updaters (except iceape one) on
first installs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2
2
 *
3
 
 * The contents of this file are subject to the Mozilla Public License
4
 
 * Version 1.1 (the "License"); you may not use this file except in
5
 
 * compliance with the License. You may obtain a copy of the License at
6
 
 * http://www.mozilla.org/MPL/ 
7
 
 * 
 
3
 * ***** BEGIN LICENSE BLOCK *****
 
4
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 
5
 *
 
6
 * The contents of this file are subject to the Mozilla Public License Version
 
7
 * 1.1 (the "License"); you may not use this file except in compliance with
 
8
 * the License. You may obtain a copy of the License at
 
9
 * http://www.mozilla.org/MPL/
 
10
 *
8
11
 * Software distributed under the License is distributed on an "AS IS" basis,
9
12
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
10
13
 * for the specific language governing rights and limitations under the
11
 
 * License. 
12
 
 *
13
 
 * The Original Code is The JavaScript Debugger
14
 
 * 
 
14
 * License.
 
15
 *
 
16
 * The Original Code is The JavaScript Debugger.
 
17
 *
15
18
 * The Initial Developer of the Original Code is
16
 
 * Netscape Communications Corporation
17
 
 * Portions created by Netscape are
18
 
 * Copyright (C) 1998 Netscape Communications Corporation.
19
 
 *
20
 
 * Alternatively, the contents of this file may be used under the
21
 
 * terms of the GNU Public License (the "GPL"), in which case the
22
 
 * provisions of the GPL are applicable instead of those above.
23
 
 * If you wish to allow use of your version of this file only
24
 
 * under the terms of the GPL and not to allow others to use your
25
 
 * version of this file under the MPL, indicate your decision by
26
 
 * deleting the provisions above and replace them with the notice
27
 
 * and other provisions required by the GPL.  If you do not delete
28
 
 * the provisions above, a recipient may use your version of this
29
 
 * file under either the MPL or the GPL.
 
19
 * Netscape Communications Corporation.
 
20
 * Portions created by the Initial Developer are Copyright (C) 1998
 
21
 * the Initial Developer. All Rights Reserved.
30
22
 *
31
23
 * Contributor(s):
32
 
 *  Robert Ginda, <rginda@netscape.com>, original author
33
 
 *
34
 
 */
 
24
 *   Robert Ginda, <rginda@netscape.com>, original author
 
25
 *
 
26
 * Alternatively, the contents of this file may be used under the terms of
 
27
 * either the GNU General Public License Version 2 or later (the "GPL"), or
 
28
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 
29
 * in which case the provisions of the GPL or the LGPL are applicable instead
 
30
 * of those above. If you wish to allow use of your version of this file only
 
31
 * under the terms of either the GPL or the LGPL, and not to allow others to
 
32
 * use your version of this file under the terms of the MPL, indicate your
 
33
 * decision by deleting the provisions above and replace them with the notice
 
34
 * and other provisions required by the GPL or the LGPL. If you do not delete
 
35
 * the provisions above, a recipient may use your version of this file under
 
36
 * the terms of any one of the MPL, the GPL or the LGPL.
 
37
 *
 
38
 * ***** END LICENSE BLOCK ***** */
35
39
 
36
40
const VMGR_VURL_SCHEME = "x-vloc:";
37
41
const VMGR_SCHEME_LEN  = VMGR_VURL_SCHEME.length;
531
535
ViewManager.prototype.computeLocation =
532
536
function vmgr_computelocation (element)
533
537
{
534
 
    if (!ASSERT(element, "missig parameter"))
 
538
    if (!ASSERT(element, "missing parameter"))
535
539
        return null;
536
540
    
537
541
    if (!element.parentNode)
1628
1632
    var dest = new Object();
1629
1633
    dest.windowId = parsedTarget.windowId;
1630
1634
    dest.containerId = destContainer.getAttribute ("id");
1631
 
    dest.before = destBefore ? destBefore.getAttribute("id") : null;
 
1635
    if (destBefore)
 
1636
        dest.before = destBefore.getAttribute("id");
1632
1637
    this.moveView(dest, sourceView.viewId);
1633
1638
    this.endMultiMove();
1634
1639