Skip to content

Commit

Permalink
Handles null value for element gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
joshje committed Jan 26, 2012
1 parent d3da1ff commit a81c105
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lettering.js
Expand Up @@ -59,6 +59,9 @@
};

lettering = function( el, method ) {
if (el == null) {
return;
}
if (typeof(el.length) == "undefined") {
el = [el];
}
Expand Down

0 comments on commit a81c105

Please sign in to comment.