]> git.ipfire.org Git - thirdparty/foundation/foundation-emails.git/commitdiff
Added some more documentation for various utility functions.
authorJeanie Chung <jeanie.chung@gmail.com>
Wed, 18 Feb 2015 02:41:04 +0000 (18:41 -0800)
committerJeanie Chung <jeanie.chung@gmail.com>
Wed, 18 Feb 2015 02:41:04 +0000 (18:41 -0800)
output/gulp-zurb-inky/index.js

index 4a3e5edfef0913f30cc519fa37c0a94a7a62e43a..04f0b2736047c81cba996332ce7cf2cdbc15a311 100644 (file)
@@ -41,6 +41,13 @@ Inky.prototype = {
     self.zfArray = arr;
   },
 
+  // Description:
+  //   Checks if an element is a custom ZF element.
+  //
+  // Arguments:
+  //    elType (string): the tag name of an element
+  // Returns:
+  //    boolean: true/false
   isZfElement: function(elType) {
     var self = this;
     // create an array of our custom tags, if we haven't done so already
@@ -58,6 +65,14 @@ Inky.prototype = {
     }
   },
 
+  // Description:
+  //   Checks if an element is an element with a td included. Currently it's a manual check. 
+  //   Array was populated from the markup from the component factory.
+  //
+  // Arguments:
+  //    elType (string): the tag name of an element
+  // Returns:
+  //    boolean: true/false
   isTdElement: function(elType) {
     var tdEls = ['subcolumns', 'callout']
 
@@ -73,9 +88,9 @@ Inky.prototype = {
   },
 
   // Description:
-  //   Takes in HTML loaded via Cheerio as an argument, checks if there are any custom components.
-  //   If there are, it replaces the nested components, traverses the DOM and replaces them with
-  //   email markup.
+  //   Awww yiss. Kickstarts the whole parser. Takes in HTML loaded via Cheerio as an argument, 
+  //   checks if there are any custom components. If there are, it replaces the nested components, 
+  //   traverses the DOM and replaces them with email markup.
   //
   // Arguments:
   //    $: Cheerio loaded string