Sha256: 5f9643ca9f5261a03998d868f8144b35f0d49debd3618797ce8be66bf8c47684

Contents?: true

Size: 1.93 KB

Versions: 2

Compression:

Stored size: 1.93 KB

Contents

{:uriI"file:///Users/ericcf/work/social_networking/app/assets/javascripts/social_networking/directives.js?type=application/javascript&pipeline=self&id=c45cb2bd9a0d7b9a01a71af497b048b14ec337f91e7e818e653c4c22ce0587b2:ET:load_pathI"@/Users/ericcf/work/social_networking/app/assets/javascripts;T:
filenameI"`/Users/ericcf/work/social_networking/app/assets/javascripts/social_networking/directives.js;T:	nameI"!social_networking/directives;T:logical_pathI")social_networking/directives.self.js;T:content_typeI"application/javascript;T:sourceI"@;(function() {
  "use strict";

  // Displays pertinent information about a profile.
  function profileStatus() {
    return {
      template: '<h2>{{ profile.username }}</h2>' +
                '<h3 ng-class="profile.isAdmin ? \'invisible\' : \'\'">' +
                  'Last seen: {{ profile.latestAction | timeFromNow }}' +
                '</h3>'
    };
  }

  // Listen for 'focusOn' event and focus on the input.
  function focusOn() {
    return function(scope, elem, attr) {
      return scope.$on('focusOn', function(e, name) {
        if (name === attr.focusOn) {
          return elem[0].focus();
        }
      });
    };
  }

  // Create a module and register the directives.
  angular.module('socialNetworking.directives', [])
    .directive('profileStatus', profileStatus)
    .directive('focusOn', focusOn);
})();
;T:
metadata{:dependencieso:Set:
@hash}	I"environment-version;TTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"nfile-digest:///Users/ericcf/work/social_networking/app/assets/javascripts/social_networking/directives.js;TTF:
requiredo;;}F:stubbedo;;}F:
linkso;;}F:charsetI"
utf-8;F:digest"%5PSu2{h䓶xͿk:lengthi@:dependencies_digest"%ll+wjBԫh,d</$nRnq:idI"Ec45cb2bd9a0d7b9a01a71af497b048b14ec337f91e7e818e653c4c22ce0587b2;F:
mtimel+a3W

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
social_networking-0.13.3 spec/dummy/tmp/cache/assets/test/sprockets/v3.0/GP/GPMWUST8DBwGxnPweTnoiV9E1aL95v9LjvgcWqR_BTw.cache
social_networking-0.12.0 spec/dummy/tmp/cache/assets/test/sprockets/v3.0/GP/GPMWUST8DBwGxnPweTnoiV9E1aL95v9LjvgcWqR_BTw.cache