comparison develop/js/eye.js @ 6:63e08b98032f

rewrite extraction interface into PHP MVC architecture. (Although js hasn't been rewritten into MVC, it's fitted into the current PHP MVC architecture.) - The root of the new PHP MVC is at 'develop/'. - extraction interface is called "Extractapp" with several action, eg TaggingText, EditWordlist, EditTaglist, ExportTable.
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Thu, 05 Feb 2015 16:07:53 +0100
parents
children
comparison
equal deleted inserted replaced
5:cbbb7ef22394 6:63e08b98032f
1 /**
2 *
3 * Zoomimage
4 * Author: Stefan Petre www.eyecon.ro
5 *
6 */
7 (function($){
8 var EYE = window.EYE = function() {
9 var _registered = {
10 init: []
11 };
12 return {
13 init: function() {
14 $.each(_registered.init, function(nr, fn){
15 fn.call();
16 });
17 },
18 extend: function(prop) {
19 for (var i in prop) {
20 if (prop[i] != undefined) {
21 this[i] = prop[i];
22 }
23 }
24 },
25 register: function(fn, type) {
26 if (!_registered[type]) {
27 _registered[type] = [];
28 }
29 _registered[type].push(fn);
30 }
31 };
32 }();
33 $(EYE.init);
34 })(jQuery);