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

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 234
    • 26
  • Source
  • Commits
  • Network (26)
  • Graphs
  • Tree: f775b00

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

Widget: Fixed a problem with the .remove() proxy.

Fixes #5143 - .remove() proxy doesn't work properly.
scottgonzalez (author)
Fri Feb 05 18:12:41 -0800 2010
commit  f775b00cfa0ad662dd0e5215c9a61a210181a8d1
tree    981a2ba7ae3a2295f1c6e52006913a562940cc11
parent  f2a9deb611332776e126cb847de4c5d577c413ef
M ui/jquery.ui.widget.js 16 ••••
0
ui/jquery.ui.widget.js
...
12
13
14
15
16
17
18
19
20
 
 
 
 
 
 
 
 
 
 
21
22
23
...
12
13
14
 
 
 
 
 
 
15
16
17
18
19
20
21
22
23
24
25
26
27
0
@@ -12,12 +12,16 @@
0
 var _remove = $.fn.remove;
0
 
0
 $.fn.remove = function( selector, keepData ) {
0
-  if ( !keepData ) {
0
-    $( "*", this ).add( this ).each(function() {
0
-      $( this ).triggerHandler( "remove" );
0
-    });
0
-  }
0
-  return _remove.apply( this, arguments );
0
+  return this.each(function() {
0
+    if ( !keepData ) {
0
+      if ( !selector || $.filter( selector, [ this ] ).length ) {
0
+        $( "*", this ).add( this ).each(function() {
0
+          $( this ).triggerHandler( "remove" );
0
+        });
0
+      }
0
+    }
0
+    return _remove.call( $(this), selector, keepData );
0
+  });
0
 };
0
 
0
 $.widget = function( name, base, prototype ) {

Comments

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