1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-03 04:45:21 +02:00

Switch to ngOboe, for DI and promise interface.

This commit is contained in:
Kevan Ahlquist 2015-04-18 23:06:58 -07:00
parent 2514672c35
commit 6012453d2d
4 changed files with 21 additions and 8 deletions

1
assets/js/angular-oboe.min.js vendored Normal file
View file

@ -0,0 +1 @@
"use strict";angular.module("ngOboe",[]).service("Oboe",["OboeStream",function(a){return function(b){return a.get(b)}}]).factory("OboeStream",["$q",function(a){return{get:function(b){var c=a.defer();return oboe(b).start(function(){}).node(b.pattern||".",function(a){return c.notify(a),oboe.drop}).done(function(){return oboe.drop}),c.promise}}}]);