kopia lustrzana https://github.com/robhawkes/vizicities
25 wiersze
434 B
JavaScript
25 wiersze
434 B
JavaScript
/* globals window, _, VIZI, Q */
|
|
(function() {
|
|
"use strict";
|
|
|
|
VIZI.DOMEvents = function() {
|
|
VIZI.Log("Inititialising DOM events");
|
|
|
|
_.extend(this, VIZI.Mediator);
|
|
};
|
|
|
|
VIZI.DOMEvents.prototype.init = function() {
|
|
var self = this;
|
|
|
|
// Window resize
|
|
window.addEventListener( "resize", function(event) {
|
|
self.publish("resize", event);
|
|
}, false );
|
|
|
|
// Keyboard
|
|
|
|
// Mouse
|
|
|
|
return Q.fcall(function() {});
|
|
};
|
|
}()); |