Recursive tree comparison algorithm that is hash agnostic to lay the groundwork for Issue #28

This commit is contained in:
Peter Cottle 2013-02-18 09:10:08 -08:00
parent 0d295197ac
commit 2a96052002
9 changed files with 334 additions and 91 deletions

View file

@ -63,16 +63,17 @@ var init = function() {
events.trigger('resize', e);
});
/*
$(window).on('resize', _.throttle(function(e) {
var width = $(window).width();
var height = $(window).height();
eventBaton.trigger('windowSizeCheck', {w: width, h: height});
}, 500));
*/
eventBaton.stealBaton('docKeydown', function() { });
eventBaton.stealBaton('docKeyup', function() { });
//$('body').delegate('div.close', 'click', function() { alert('these dont actually work sorry lol.'); });
/**
* I am disabling this for now, it works on desktop but is
hacky on iOS mobile and god knows the behavior on android...
@ -90,7 +91,7 @@ var init = function() {
});
*/
/*
/* people were pissed about this apparently
eventBaton.stealBaton('windowSizeCheck', function(size) {
if (size.w < Constants.VIEWPORT.minWidth ||
size.h < Constants.VIEWPORT.minHeight) {
@ -153,6 +154,7 @@ var init = function() {
eventBaton.trigger('commandSubmitted', command);
});
}
if (/(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent) || /android/i.test(navigator.userAgent)) {
sandbox.mainVis.customEvents.on('gitEngineReady', function() {
eventBaton.trigger('commandSubmitted', 'mobile alert');