]> source.dussan.org Git - jquery.git/commitdiff
Make sure that the removeEvent and buildFragment private functions are exposed (to...
authorjeresig <jeresig@gmail.com>
Wed, 8 Sep 2010 22:13:35 +0000 (18:13 -0400)
committerjeresig <jeresig@gmail.com>
Wed, 8 Sep 2010 22:13:35 +0000 (18:13 -0400)
src/core.js
src/event.js
src/manipulation.js
src/support.js

index f5c27561b2fc44a0297f3cbc5611df3d1713f15a..65d32a39cf3f1506034738f4751145d75584f009 100644 (file)
@@ -109,7 +109,7 @@ jQuery.fn = jQuery.prototype = {
                                                }
 
                                        } else {
-                                               ret = buildFragment( [ match[1] ], [ doc ] );
+                                               ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
                                                selector = (ret.cacheable ? ret.fragment.cloneNode(true) : ret.fragment).childNodes;
                                        }
                                        
index f0b27de436f1d73ff5c2eef13bb646834bf48833..5e72aaaabd58af178f7f13edecd7f92458dca776 100644 (file)
@@ -239,7 +239,7 @@ jQuery.event = {
                        // remove generic event handler if no more handlers exist
                        if ( eventType.length === 0 || pos != null && eventType.length === 1 ) {
                                if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
-                                       removeEvent( elem, type, elemData.handle );
+                                       jQuery.removeEvent( elem, type, elemData.handle );
                                }
 
                                ret = null;
@@ -527,7 +527,7 @@ jQuery.event = {
        }
 };
 
-var removeEvent = document.removeEventListener ?
+jQuery.removeEvent = document.removeEventListener ?
        function( elem, type, handle ) {
                if ( elem.removeEventListener ) {
                        elem.removeEventListener( type, handle, false );
index 3054eea1d3a259f756cc14e3a255f86dc4346bc2..c3b8f6d0fa71c0ba125a377aa2ed384d46011dc0 100644 (file)
@@ -327,7 +327,7 @@ jQuery.fn.extend({
                                results = { fragment: parent };
 
                        } else {
-                               results = buildFragment( args, this, scripts );
+                               results = jQuery.buildFragment( args, this, scripts );
                        }
                        
                        fragment = results.fragment;
@@ -392,7 +392,7 @@ function cloneCopyEvent(orig, ret) {
        });
 }
 
-function buildFragment( args, nodes, scripts ) {
+jQuery.buildFragment = function( args, nodes, scripts ) {
        var fragment, cacheable, cacheresults,
                doc = (nodes && nodes[0] ? nodes[0].ownerDocument || nodes[0] : document);
 
@@ -422,7 +422,7 @@ function buildFragment( args, nodes, scripts ) {
        }
 
        return { fragment: fragment, cacheable: cacheable };
-}
+};
 
 jQuery.fragments = {};
 
@@ -569,7 +569,7 @@ jQuery.extend({
                                                        jQuery.event.remove( elem, type );
 
                                                } else {
-                                                       removeEvent( elem, type, data.handle );
+                                                       jQuery.removeEvent( elem, type, data.handle );
                                                }
                                        }
                                }
index 75e89dd0e670b349c0c1b643478a9e001c398e07..febff15973f3e7722883118744da1e67511d738b 100644 (file)
 
        // release memory in IE
        root = script = div = all = a = null;
-})();
+})( jQuery );
 
 jQuery.props = {
        "for": "htmlFor",