Skip to content

Commit 4e485db

Browse files
committed
more comments
1 parent ce4c8b2 commit 4e485db

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/rails_model.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
/**
4141
*
4242
* @private
43+
*
44+
* @return {String} Trimmed string
4345
*
4446
* Trim whitespace from the front and back of a string
4547
*/
@@ -51,6 +53,8 @@
5153
* @private
5254
* @param {String} string The string to be converted
5355
*
56+
* @return {String} Camelized string
57+
*
5458
* Convert underscored string into camelcase (taken from undescore.string.js)
5559
*/
5660
camelize = function(string){
@@ -61,7 +65,9 @@
6165
/**
6266
*
6367
* @private
64-
* @param {String} string The string to be converted
68+
* @param {String} string The string to be converted
69+
*
70+
* @return {String} Underscored string
6571
*
6672
* Convert camelcased string into underscored (taken from undescore.string.js)
6773
*/
@@ -77,6 +83,7 @@
7783
* @private
7884
* @binding {Backbone.RailsModel}
7985
* @param {String} type Type of association to create
86+
*
8087
* @return {Function} to iterate over associations and create them
8188
*
8289
* Creates the associated model and populates it with data
@@ -140,5 +147,4 @@
140147
}
141148

142149
});
143-
144150
})();

0 commit comments

Comments
 (0)