File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff 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
115147module . exports = tips ;
You can’t perform that action at this time.
0 commit comments