/[drupal]/contributions/modules/semantic_search/js/jquery.hook.js
ViewVC logotype

Contents of /contributions/modules/semantic_search/js/jquery.hook.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Tue Jun 5 07:08:57 2007 UTC (2 years, 5 months ago) by hendler
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-5
Changes since 1.1: +2 -3 lines
File MIME type: text/javascript
added patch suggested at http://www.civicactions.com/blog/jquery_hook_or_callback_function
1 /**
2 * a jquery hook function
3 *
4 * lets a current js function call alternate functions
5 *
6 * @todo mimic drupal hook system
7 *
8 * @author Jonathan Hendler (jonathan at civicactions dot com)
9 * @license AGPL http://www.affero.org/oagpl.html
10 * @version 0.1.0
11 *
12 * hookExecute:
13 *
14 */
15 jQuery.extend({
16 hookExecute: function (function_name){
17 if (typeof window[function_name] == "function"){
18 window[function_name]();
19 }else{
20 //debug
21 }
22 }
23 });

  ViewVC Help
Powered by ViewVC 1.1.2