All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lib.history.adapter.jquery.js Maven / Gradle / Ivy

Go to download

A UI/UX framework that can help build beautiful, fast, flexible, secure, maintainable applications with GWT and REST.

There is a newer version: 1.7
Show newest version
// Closure
(function(window,undefined){
	// Localise Globals
	var
		History = window.History = window.History||{},
		jQuery = window.jQuery;

	// Check Existence
	if ( typeof History.Adapter !== 'undefined' ) {
		throw new Error('History.js Adapter has already been loaded...');
	}

	// Add the Adapter
	History.Adapter = {
		bind: function(el,event,callback){
			jQuery(el).bind(event,callback);
		},

		trigger: function(el,event){
			jQuery(el).trigger(event);
		},

		onDomLoad: function(callback) {
			jQuery(callback);
		}
	};

	// Try and Initialise History
	if ( typeof History.init !== 'undefined' ) {
		History.init();
	}

})(window);




© 2015 - 2024 Weber Informatics LLC | Privacy Policy