Sha256: 9cf5691d0b5424c78f76076aa1f5fd1ef66d712664035157c3fc9489215eac24

Contents?: true

Size: 1.07 KB

Versions: 571

Compression:

Stored size: 1.07 KB

Contents

define([
	"../core",
	"../event"
], function( jQuery ) {

jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
	"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
	"change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {

	// Handle event binding
	jQuery.fn[ name ] = function( data, fn ) {
		return arguments.length > 0 ?
			this.on( name, null, data, fn ) :
			this.trigger( name );
	};
});

jQuery.fn.extend({
	hover: function( fnOver, fnOut ) {
		return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
	},

	bind: function( types, data, fn ) {
		return this.on( types, null, data, fn );
	},
	unbind: function( types, fn ) {
		return this.off( types, null, fn );
	},

	delegate: function( selector, types, data, fn ) {
		return this.on( types, selector, data, fn );
	},
	undelegate: function( selector, types, fn ) {
		// ( namespace ) or ( selector, types [, fn] )
		return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn );
	}
});

});

Version data entries

571 entries across 571 versions & 44 rubygems

Version Path
radius-rails-3.1.4 app/assets/components/jquery/src/event/alias.js
middleman-core-4.5.1 fixtures/import-app/bower_components/jquery/src/event/alias.js
middleman-core-4.5.0 fixtures/import-app/bower_components/jquery/src/event/alias.js
middleman-core-4.4.3 fixtures/import-app/bower_components/jquery/src/event/alias.js
middleman-core-4.4.2 fixtures/import-app/bower_components/jquery/src/event/alias.js
middleman-core-4.4.0 fixtures/import-app/bower_components/jquery/src/event/alias.js
epuber-0.6.0 lib/epuber/third_party/bower/bower_components/jquery/src/event/alias.js
middleman-core-4.3.11 fixtures/import-app/bower_components/jquery/src/event/alias.js
middleman-core-4.3.10 fixtures/import-app/bower_components/jquery/src/event/alias.js
middleman-core-4.3.8 fixtures/import-app/bower_components/jquery/src/event/alias.js
middleman-core-4.3.7 fixtures/import-app/bower_components/jquery/src/event/alias.js
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/middleman-core-4.3.3/fixtures/import-app/bower_components/jquery/src/event/alias.js
middleman-core-4.3.6 fixtures/import-app/bower_components/jquery/src/event/alias.js
middleman-core-4.3.5 fixtures/import-app/bower_components/jquery/src/event/alias.js
iqvoc-4.12.1 vendor/assets/bower_components/jquery/src/event/alias.js
middleman-core-4.3.4 fixtures/import-app/bower_components/jquery/src/event/alias.js
epuber-0.5.7 lib/epuber/third_party/bower/bower_components/jquery/src/event/alias.js
card-1.97.0 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/jquery/src/event/alias.js
middleman-core-4.3.3 fixtures/import-app/bower_components/jquery/src/event/alias.js
card-1.96.8 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/jquery/src/event/alias.js