When a beginner asks you "when do I use semi-colons?" would you rather say this?
// what people who say "use semicolons!!" say
class Foo {
prop = {
}; // yes
.mouse, #preview{ | |
position: absolute; | |
background-repeat: no-repeat; | |
height: 22px; | |
min-width: 15px; | |
z-index: 100; | |
} | |
.mouse{ | |
background-image: url('../images/cursor.png'); |
$(function() { | |
setInterval(function() { | |
$(".reloadable").each(function(i) { | |
var originalSrc = $(this).data('originalSrc'); | |
if (!originalSrc) { | |
originalSrc = $(this).attr('src'); | |
$(this).data('originalSrc', originalSrc); | |
} | |
$(this).attr('src', originalSrc + '&hack=' + (new Date().getTime())); | |
}); |
#Run with casperjs test translate.coffee | |
casper.start 'http://translate.google.com/', -> | |
@sendKeys '#source', 'Guten Tag' | |
@then -> | |
@click '#gt-submit' | |
@waitForText 'Good day' | |
@then -> | |
@test.assertSelectorHasText '#result_box', 'Good day' | |
@then -> |
<span | |
ng-click="add()" | |
class="icon icon__plus" | |
>Hello World!</span> |
When a beginner asks you "when do I use semi-colons?" would you rather say this?
// what people who say "use semicolons!!" say
class Foo {
prop = {
}; // yes