Skip to content
Browse files

This minor change fixes an issue when using Prototype 1.7.

* This does not break Prototype 1.6 functionality, afaik.
  • Loading branch information...
1 parent 40f4549 commit ebcbd1bde9288a7d5a918f30dfa393d6ea9172ec @sfsekaran committed Jan 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 prototype/iphone-style-checkboxes.js
View
2 prototype/iphone-style-checkboxes.js
@@ -54,7 +54,7 @@ var iPhoneStyle = function(selector_or_elems, options) {
elem.change = function() {
var is_onstate = elem.checked;
- var p = handle.positionedOffset().first() / rightside;
+ var p = handle.positionedOffset()[0] / rightside;
new Effect.Tween(null, p, Number(is_onstate), { duration: options.duration / 1000 }, function(p) {
handle.setStyle({ left: p * rightside + 'px' });
onlabel.setStyle({ width: p * rightside + 4 + 'px' });

0 comments on commit ebcbd1b

Please sign in to comment.
Something went wrong with that request. Please try again.