Blame view

WebRoot/plugins/zoomimage/js/eye.js 570 Bytes
ad5081d3   孙向锦   初始化项目
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  /**
   *
   * Zoomimage
   * Author: Stefan Petre www.eyecon.ro
   * 
   */
  (function($){
  	var EYE = window.EYE = function() {
  		var _registered = {
  			init: []
  		};
  		return {
  			init: function() {
  				$.each(_registered.init, function(nr, fn){
  					fn.call();
  				});
  			},
  			extend: function(prop) {
  				for (var i in prop) {
  					if (prop[i] != undefined) {
  						this[i] = prop[i];
  					}
  				}
  			},
  			register: function(fn, type) {
  				if (!_registered[type]) {
  					_registered[type] = [];
  				}
  				_registered[type].push(fn);
  			}
  		};
  	}();
  	$(EYE.init);
  })(jQuery);