Commits

Anonymous committed ab9cac3

forgot to implement collect

  • Participants
  • Parent commits 1a19e09
  • Tags 0.1.1

Comments (0)

Files changed (2)

 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+
+Images & css are from livepipe project :
+http://livepipe.net

File jquery.textarea.js

       }
     }
     
+    K= function(x) { return x }
+    
+    Array.prototype.collect = function(iterator, context) {
+      iterator = iterator || K;
+      var results = [];
+      $(this).each(function(index, value) {
+        results.push(iterator.call(context, value, index));
+      });
+      return results;
+    },
+    
 
     $.fn.TextArea = function(options) {
         options = options || {};