web/rsln-opendata/res/metadataplayer/test/hook.js
changeset 120 3daa4039509a
parent 119 4c86151704e9
child 121 2b794b7901d6
--- a/web/rsln-opendata/res/metadataplayer/test/hook.js	Fri Apr 22 12:31:41 2011 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-var Hook = {
-  hooks: [],
- 
-  register: function ( name, callback ) {
-    if( 'undefined' == typeof( Hook.hooks[name] ) )
-      Hook.hooks[name] = []
-    Hook.hooks[name].push( callback )
-  },
- 
-  call: function ( name, arguments ) {
-    if( 'undefined' != typeof( Hook.hooks[name] ) )
-      for( i = 0; i < Hook.hooks[name].length; ++i )
-        if( true != Hook.hooks[name][i]( arguments ) ) { break; }
-  }
-}
\ No newline at end of file