Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed reported by @niloy and @eaviles.

  • Loading branch information...
commit b0b7e4168d11c6cb33b67fe193664683a31893f8 1 parent 9bc28f1
@ironwallaby ironwallaby authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 skycons.js
View
8 skycons.js
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.