Permalink
Browse files

Merge pull request #55 from sfsekaran/patch-2

This minor change fixes an issue when using Prototype 1.7
  • Loading branch information...
2 parents 40f4549 + ebcbd1b commit ae47bb8bcb3ac552d770b60a5cdcee9ab82645aa @tdreyno committed Jan 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 ae47bb8

Please sign in to comment.