use Ox.Log

This commit is contained in:
j 2011-11-04 16:54:28 +01:00
commit dce2843303
50 changed files with 276 additions and 276 deletions

View file

@ -7,7 +7,7 @@ Ox.Focus = (function() {
var stack = [];
return {
_print: function() {
Ox.print(stack);
Ox.Log('Core', stack);
},
_reset: function() {
$('.OxFocus').removeClass('OxFocus');
@ -26,7 +26,7 @@ Ox.Focus = (function() {
//$elements[id].removeClass('OxFocus');
$('.OxFocus').removeClass('OxFocus'); // fixme: the above is better, and should work
stack.length && Ox.UI.elements[stack[stack.length - 1]].addClass('OxFocus');
Ox.print('blur', id, stack);
Ox.Log('Core', 'blur', id, stack);
}
},
/*@
@ -39,7 +39,7 @@ Ox.Focus = (function() {
index > -1 && stack.splice(index, 1);
stack.push(id);
$('.OxFocus').removeClass('OxFocus'); // fixme: see above
Ox.print('focus', id, stack);
Ox.Log('Core', 'focus', id, stack);
Ox.UI.elements[id].addClass('OxFocus');
}
},