Sha256: a1fe69faf501bb60ddc99eadfb4601a8a46c3afa881f657d97149997878ae9bf

Contents?: true

Size: 1.2 KB

Versions: 8

Compression:

Stored size: 1.2 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"$social_networking/directives.js;FI"
pathname;TI"e/Users/ems408/workspace/social_networking/app/assets/javascripts/social_networking/directives.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+æ#\TI"length;TiâI"digest;TI"%c5a4066920961cf6670d8b7b0bce193f;FI"source;TI"â;(function() {
  "use strict";

  // Displays pertinent information about a profile.
  function profileStatus() {
    return {
      template: '<h2>{{ profile.username }}</h2>' +
                '<h3>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);
})();
;TI"required_assets_digest;TI"%4e47ef1b00d7e6638fc9e3c32a8ff0b6;FI"
_version;TI"%b910479f035fc02c55a3e167aaa8a0b8;F

Version data entries

8 entries across 4 versions & 1 rubygems

Version Path
social_networking-0.11.7 spec/dummy/tmp/cache/assets/development/sprockets/0b4f5a2b909fba1e4c8d4672027155b5
social_networking-0.11.7 spec/dummy/tmp/cache/assets/development/sprockets/f0797762e769e6685b8da5a72c1519e1
social_networking-0.11.6 spec/dummy/tmp/cache/assets/development/sprockets/0b4f5a2b909fba1e4c8d4672027155b5
social_networking-0.11.6 spec/dummy/tmp/cache/assets/development/sprockets/f0797762e769e6685b8da5a72c1519e1
social_networking-0.11.2 spec/dummy/tmp/cache/assets/development/sprockets/0b4f5a2b909fba1e4c8d4672027155b5
social_networking-0.11.2 spec/dummy/tmp/cache/assets/development/sprockets/f0797762e769e6685b8da5a72c1519e1
social_networking-0.11.1 spec/dummy/tmp/cache/assets/development/sprockets/0b4f5a2b909fba1e4c8d4672027155b5
social_networking-0.11.1 spec/dummy/tmp/cache/assets/development/sprockets/f0797762e769e6685b8da5a72c1519e1