source: extensions/Piwecard/js/colorpicker/js/eye.js @ 20260

Last change on this file since 20260 was 20260, checked in by julien1311, 11 years ago

[piwecard] forgot to commit the colorpicker plugin...

  • Property svn:eol-style set to LF
File size: 570 bytes
Line 
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);
Note: See TracBrowser for help on using the repository browser.