Permalink
Browse files

v0.4

  • Loading branch information...
1 parent 1ff401a commit 35f263280a6f0949250554ad87af681fa9b5a4b3 @madrobby committed Jan 21, 2011
Showing with 5 additions and 5 deletions.
  1. +1 −1 Rakefile
  2. +4 −4 test/zepto.html
View
@@ -1,7 +1,7 @@
require 'rake'
require 'rake/packagetask'
-ZEPTO_VERSION = "0.3"
+ZEPTO_VERSION = "0.4"
ZEPTO_ROOT = File.expand_path(File.dirname(__FILE__))
ZEPTO_SRC_DIR = File.join(ZEPTO_ROOT, 'src')
View
@@ -460,15 +460,15 @@
t.assertEqual("", $('#htmltest3').html());
t.assertNull($('doesnotexist').html());
-
+
div.html('yowza');
div.html(function(idx, html){
return html.toUpperCase();
});
t.assertEqual('YOWZA', div.html());
-
+
div.html('<u>a</u><u>b</u><u>c</u>');
-
+
$('u').html(function(idx,html){
return idx+html;
});
@@ -691,7 +691,7 @@
t.assertEqual('id', els.attr("data-id"));
t.assertEqual('name', els.attr("data-name"));
t.assertEqual('id', $('#attr_2').attr('data-id'));
-
+
els.attr('data-id', function(idx,oldvalue){
return idx+oldvalue;
});

0 comments on commit 35f2632

Please sign in to comment.