Policy 1707 commit to LF
[policy/engine.git] / ECOMP-SDK-APP / src / main / webapp / static / fusion / sample / js / eye.js
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);