github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 249
    • 27
  • Source
  • Commits
  • Network (27)
  • Graphs
  • Tree: 7e69faa

click here to add a description

click here to add a homepage

  • Switch Branches (4)
    • bind
    • master
    • panel
    • tooltip
  • Switch Tags (15)
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
Sending Request…

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Panel: Added destroy method
jzaefferer (author)
Mon Mar 22 08:55:31 -0700 2010
commit  7e69faaf4eedd446270fc2c8bdbf41b59736b1cd
tree    d56e5fd80de69df485485e20dd72ff7257d36ec1
parent  aaf11d2553ff8e2358fed68ed6da936f6866f0eb
M ui/jquery.ui.panel.js 16 •••••
Txt ui/jquery.ui.panel.js
  • View file @ 7e69faa
... ...
@@ -51,6 +51,22 @@ $.widget("ui.panel", {
51 51
         .hide();
52 52
   },
53 53
   
  54
+  destroy: function() {
  55
+    $.Widget.prototype.destroy.apply(this, arguments);
  56
+    this.element
  57
+      .removeClass("ui-panel ui-widget ui-helper-reset")
  58
+      .removeAttr("role");
  59
+
  60
+    this.headers
  61
+      .unbind(".panel")
  62
+      .removeClass("ui-panel-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top")
  63
+      .removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");
  64
+
  65
+    this.headers.find("a").removeAttr("tabindex");
  66
+    this._destroyIcons();
  67
+    var contents = this.headers.next().css("display", "").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-panel-content ui-panel-content-active");
  68
+  },
  69
+  
54 70
   _setOption: function(key, value) {
55 71
     $.Widget.prototype._setOption.apply(this, arguments);
56 72
       

0 notes on commit 7e69faa

Please log in to comment.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server