2014-01-13 22:48:55 +00:00
|
|
|
(function(context,$) {
|
|
|
|
|
|
|
|
|
|
context.JK = {}
|
|
|
|
|
|
|
|
|
|
var console_methods = [
|
|
|
|
|
'log', 'debug', 'info', 'warn', 'error', 'assert',
|
|
|
|
|
'clear', 'dir', 'dirxml', 'trace', 'group',
|
|
|
|
|
'groupCollapsed', 'groupEnd', 'time', 'timeEnd',
|
|
|
|
|
'timeStamp', 'profile', 'profileEnd', 'count',
|
|
|
|
|
'exception', 'table'
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
if ('undefined' === typeof(context.console)) {
|
|
|
|
|
context.console = {};
|
|
|
|
|
$.each(console_methods, function(index, value) {
|
|
|
|
|
context.console[value] = $.noop;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
context.JK.logger = context.console;
|
|
|
|
|
|
2014-09-13 03:30:51 +00:00
|
|
|
$(function() {
|
|
|
|
|
$('a.confirm').click(function() {
|
|
|
|
|
return confirm('ARE YOU SURE?!');
|
|
|
|
|
})
|
|
|
|
|
})
|
2014-01-13 22:48:55 +00:00
|
|
|
|
|
|
|
|
})(window, jQuery);
|