Sha256: 5c8ad662d7554290eb54e7d58c00afa51ce986deecaec59cce154df8b563f984
Contents?: true
Size: 468 Bytes
Versions: 19
Compression:
Stored size: 468 Bytes
Contents
Storytime.Utilities = { controllerFromString: function(str){ if(!str) return null; var base = window; var components = str.split("::"); for(var i=0; i<components.length; i++){ var component = components[i]; if(base[component]){ if(i == components.length - 1){ return base[component]; } else{ base = base[component]; } } else{ return null; } } } }
Version data entries
19 entries across 19 versions & 1 rubygems