Sha256: 4f33e9f3f477041a78755b6ba3e6a04b238970bab6eab455009e94ec8d66d9d3
Contents?: true
Size: 1.98 KB
Versions: 2
Compression:
Stored size: 1.98 KB
Contents
{I" class:ETI"ProcessedAsset; FI"logical_path; TI"!sprangular/services/flash.js; FI" pathname; TI"b/home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/services/flash.coffee; FI"content_type; TI"application/javascript; TI" mtime; Tl+"UI"length; Ti¨I"digest; TI"%1e9891c15d1429501f061c0a9a1b6c16; FI"source; TI"¨(function() { Sprangular.factory('Flash', function($timeout, $translate) { return { messages: [], add: function(type, translate_key) { var self; self = this; return $translate(translate_key).then(function(translated) { var flash; flash = { type: type, text: translated }; self.messages.push(flash); return self.timeout(flash); }); }, timeout: function(flash) { var self; self = this; return $timeout((function() { return self.remove(flash); }), 2500); }, success: function(translate_key) { return this.add('success', translate_key); }, info: function(translate_key) { return this.add('info', translate_key); }, error: function(translate_key) { return this.add('danger', translate_key); }, remove: function(flash) { return this.messages = this.messages.filter(function(x) { return x !== flash; }); }, hasMessages: function() { return this.messages.length > 0; } }; }); }).call(this); ; TI"dependency_digest; TI"%6b11276f8d898777e3a8732efa1551a9; FI"required_paths; T[I"b/home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/services/flash.coffee; FI"dependency_paths; T[{I" path; TI"b/home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/services/flash.coffee; FI" mtime; TI"2015-03-25T16:05:54-04:00; TI"digest; TI"%80a6941b2b4981adcc984d2e923d03bd; FI" _version; TI"%64e62ddc273c2f5847f30d698ca14b67; F
Version data entries
2 entries across 1 versions & 1 rubygems