Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add: shortcut for setting all colors tpad('F00')

  • Loading branch information...
commit 7378c2a1d1eb6b51abed205e6c66ba884192290b 1 parent 4a803f9
@tmpvar authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/tpad.js
View
4 lib/tpad.js
@@ -93,6 +93,10 @@ function Tpad(config) {
var ret = function(index, color) {
if (color) {
that[index].color(color);
+
+ // shortcut for tpad('F00');
+ } else if (index.length) {
+ ret.color(index);
}
return typeof index !== 'undefined' ? that[index] : that;
};
Please sign in to comment.
Something went wrong with that request. Please try again.