Login   Register  
Icontem

File: examples_and_documents/js/sampleModuleNotifier.js

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tomas Corral  >  Hydra.js  >  examples_and_documents/js/sampleModuleNotifier.js  >  Download  
File: examples_and_documents/js/sampleModuleNotifier.js
Role: Example script
Content type: text/plain
Description: Example module notifier
Class: Hydra.js
Modular event action handler
Author: By
Last change:
Date: 2011-07-21 13:18
Size: 328 bytes
 

Contents

Class file image Download
Hydra.module.register("sampleModuleNotifier", function (action) {
	return {
		sModule: 'BaseSample',
		init: function (oData) {
			alert("Notifier Module started");
			
			action.notify({
				type: 'linkClicked',
				data: null
			});
		},
		handleAction: function (oNotifier) {},
		destroy: function () {}
	};
});