Sha256: bf063bfeec10051ceb7649925c0cb7c359ba9b5e97d9b1ee7eee5a73b52f2933

Contents?: true

Size: 1.16 KB

Versions: 10

Compression:

Stored size: 1.16 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) {
    var self = this;

    return this.insert(function () {
      var el = jQuery(elem)[0];
      self._doAttach(el, el.firstChild);
    });
  },

  /**
    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

10 entries across 10 versions & 1 rubygems

Version Path
sproutcore-1.11.0.rc3 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.11.0.rc2 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.11.0.rc1 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.10.3.1 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.10.2 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.10.1 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.10.0 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.10.0.rc.3 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.10.0.rc.2 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js
sproutcore-1.10.0.rc.1 lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js