Skip to content

Commit

Permalink
Fixed reported by @niloy and @eaviles.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason LaPorte committed Jul 7, 2014
1 parent 9bc28f1 commit b0b7e41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions skycons.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,10 +636,10 @@

Skycons.prototype = {
_determineDrawingFunction: function(draw) {
if(typeof draw === "string") {
draw = draw.toUpperCase().replace(/-/g, "_");
return Skycons.hasOwnProperty(draw) ? Skycons[draw] : null;
}
if(typeof draw === "string")
draw = Skycons[draw.toUpperCase().replace(/-/g, "_")] || null;

return draw;
},
add: function(el, draw) {
var obj;
Expand Down

0 comments on commit b0b7e41

Please sign in to comment.