Skip to content

Commit 6583d71

Browse files
committed
Re-adding
1 parent 083cae3 commit 6583d71

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

tips.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,37 @@ tips.push({
111111
]
112112
});
113113

114+
tips.push({
115+
author: 'rwaldron',
116+
message: "Declaring your functions globally ensures they are accessible throughout your entire script. This ensures they always take precedence!",
117+
example: [
118+
'function postMessage(message) {',
119+
' $.post("/helloworld.php", "message="+message)',
120+
'};'
121+
]
122+
});
123+
124+
125+
tips.push({
126+
author: 'rwaldron',
127+
message: "Put your commas at the beginning of the line, because thats what they do in someother Enterprise languages",
128+
example: [
129+
'var CommaBomb = {',
130+
' defaults: "" ',
131+
' , options: "" ',
132+
' , settings: "" ',
133+
' , methods: { ',
134+
' getOptions: function () { ',
135+
' } ',
136+
' , setOptions: function () { ',
137+
' } ',
138+
' , getSettings: function () { ',
139+
' } ',
140+
' , setSettings: function () { ',
141+
' } ',
142+
' }'
143+
'};'
144+
]
145+
});
114146

115147
module.exports = tips;

0 commit comments

Comments
 (0)