Permalink
Browse files

fixing skipStyle logic

  • Loading branch information...
1 parent 032e4b0 commit c4903fa87f2e8436dd331a89563f79e9956e94df @heygrady committed May 20, 2011
Showing with 4 additions and 3 deletions.
  1. +3 −2 jquery.textshadow.js
  2. +1 −1 readme.md
View
@@ -11,7 +11,8 @@
options = value;
value = null;
}
- var skipStyle = options.skipStyle || true;
+ var opts = options || {};
+ var useStyle = opts.useStyle || false;
// loop the found items
return this.each(function() {
@@ -26,7 +27,7 @@
allWords(this);
$copy = $elem.find('.ui-text-shadow-copy');
}
- if (!skipStyle)
+ if (useStyle) {
applyStyles($elem, $copy, value);
}
});
View
@@ -13,7 +13,7 @@ It is recommended to use this library with a feature detection library such as [
$('h1').textshadow();
// reading the current style automatically
- $('h1').textshadow({skipStyles: false});
+ $('h1').textshadow({useStyle: true});
// normal
$('h1').textshadow('2px 2px 2px #000');

0 comments on commit c4903fa

Please sign in to comment.