var date_start = new Date(),
b;
for (i = 0; i < 200000; i++) {
b = !!i;
}
console.log((new Date()) - date_start);
var date_start = new Date(),
b;
for (i = 0; i < 200000; i++) {
b = Boolean(i);
}
console.log((new Date()) - date_start);
var d = new Date();
var s = d.getDate() + '.' + (d.getMonth() + 1) + '.' + d.getFullYear();
console.log(s);
#('#content").on('change', '#catalog-sort', function() {
...
});
As of jQuery 1.7, the .live() method is deprecated. Use .on() to attach event handlers. Users of older versions of jQuery should use .delegate() in preference to .live().