Sha256: 5b262ab521fe90113885de248d0b13b5cb09ef74b75ee15f35b557b99de635b4

Contents?: true

Size: 940 Bytes

Versions: 2

Compression:

Stored size: 940 Bytes

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"storytime/utilities.js;FI"
pathname;TI"X/Users/ben/flyover/projects/storytime/app/assets/javascripts/storytime/utilities.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+˝ĂSI"length;Ti×I"digest;TI"%e29169e32201a464bf7003d2ba31126e;FI"source;TI"×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;
      }
      
    }
  }
}
;
;TI"required_assets_digest;TI"%0443fda7d6559d3765f74e9d36205113;FI"
_version;TI"%37d9e9317b7fde5d2addbefd4177a12b;F

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
storytime-1.0.2 spec/dummy/tmp/cache/assets/test/sprockets/180a530dad5e67b95a82a17434e8ecf9
storytime-1.0.2 spec/dummy/tmp/cache/assets/test/sprockets/184694892843c62a63bfb91e42e94ead