回答編集履歴

1

setSameHeightByElements のバグ修正

2016/02/17 03:51

投稿

think49
think49

スコア18189

test CHANGED
@@ -44,9 +44,17 @@
44
44
 
45
45
 
46
46
 
47
+ if (!(elements in jQuery)) {
48
+
49
+ throw new Error(elements + ' is not a jQuery object');
50
+
51
+ }
52
+
53
+
54
+
47
55
  for (var j = 0, m = elements.length; j < m; ++j) {
48
56
 
49
- var height = elements[j].height();
57
+ var height = jQuery(elements[j]).height();
50
58
 
51
59
 
52
60