Sha256: fadef7755ab421201bb33ecb8c4801c589f5f9e55bc2c99d895b3d7f9860374b

Contents?: true

Size: 1.1 KB

Versions: 30

Compression:

Stored size: 1.1 KB

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
//            ©2008-2011 Apple Inc. All rights reserved.
// License:   Licensed under MIT license (see license.js)
// ==========================================================================
sc_require("panes/pane");

SC.Pane.reopen(
  /** @scope SC.Pane.prototype */ {

  /**
    Inserts the pane's layer as the first child of the passed element.

    @param {DOMElement|jQuery|String} elem the element to prepend the pane's layer to.
      This is passed to `jQuery()`, so any value supported by `jQuery()` will work.
    @returns {SC.Pane} receiver
  */
  prependTo: function(elem) {
    return this.insert(function(layer) {
      jQuery(elem).prepend(layer);
    });
  },

  /**
    This method has no effect in the pane.  Instead use remove().

    @returns {void}
  */
  removeFromParent: function() {
    throw SC.Error.desc("SC.Pane cannot be removed from its parent, since it's the root. Did you mean remove()?");
  }
});

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
sproutcore-1.9.2 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.9.1 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.9.0 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.8.2.1 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.8.1 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.8.0 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.7.1.beta-java lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.7.1.beta lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.6.0.1-java lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.6.0.1 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.6.0.1-x86-mingw32 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.6.0 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.6.0-java lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.6.0.rc.2-x86-mingw32 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.6.0.rc.2 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.6.0.rc.2-java lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.6.0.rc.1-x86-mingw32 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.6.0.rc.1 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.6.0.rc.1-java lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.6.0.beta.3-x86-mingw32 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js