function generateWords() {
         originWords = self.content.split(/\s+/g);
         originWords = originWords.map(function(word) {
            return {
               text: word,
               count: Math.floor(Math.random() * maxWordCount)
            };
         }).sort(function(a, b) {
            return b.count - a.count;
         });
         resizeWordsCloud();
      }
/**
       * generate words base on some content by split(/\s+/g) and sort descending
       */
generate words base on some content by split(/\s+/g) and sort descending
generate words base on some content by split ( / \ s + / g ) and sort descending
function generateWords() {
         originWords = self.content.split(/\s+/g);
         originWords = originWords.map(function(word) {
            return {
               text: word,
               count: Math.floor(Math.random() * maxWordCount)
            };
         }).sort(function(a, b) {
            return b.count - a.count;
         });
         resizeWordsCloud();
      }
function generateWords ( ) { originWords = self . content . split ( / \s+ / g ) ; originWords = originWords . map ( function ( word ) { return { text : word , count : Math . floor ( Math . random ( ) * maxWordCount ) } ; } ) . sort ( function ( a , b ) { return b . count - a . count ; } ) ; resizeWordsCloud ( ) ; }
generate words base on some content by split(/\s+/g) and sort descending
generate words base on some content by split ( / \ s + / g ) and sort descending