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 = {
}; // yesWhen 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| previousjQuery = jQuery; | |
| jQuery(function($){ | |
| // only run in browsers that can do localStorage (not IE) and only on the tickets page | |
| if ('localStorage' in window && $('body').hasClass('tickets-show')) { | |
| // I want to make sure that this always runs with my version of jquery, not zendesk's | |
| $.getScript('http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js', function(){ | |
| jQuery(function($){ | |
| function getThisZendeskTicketFromRestApi(callback){ | |
| var UrlToThisTicket = window.location.protocol + "//" + window.location.host + window.location.port + window.location.pathname; |
| RED="\[\033[0;31m\]" | |
| YELLOW="\[\033[0;33m\]" | |
| GREEN="\[\033[0;32m\]" | |
| BLUE="\[\033[0;34m\]" | |
| LIGHT_RED="\[\033[1;31m\]" | |
| LIGHT_GREEN="\[\033[1;32m\]" | |
| WHITE="\[\033[1;37m\]" | |
| LIGHT_GRAY="\[\033[0;37m\]" | |
| COLOR_NONE="\[\e[0m\]" |