mirror of
https://github.com/xenia-project/xenia.git
synced 2026-04-05 22:55:19 +00:00
Displaying (unformatted) function code.
This commit is contained in:
parent
4ecdfed46f
commit
c92142ca02
20 changed files with 242 additions and 44 deletions
|
|
@ -41,6 +41,7 @@ module.service('app', function(
|
|||
this.close();
|
||||
|
||||
this.session = session;
|
||||
$rootScope.$emit('refresh');
|
||||
};
|
||||
|
||||
App.prototype.close = function() {
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ module.service('DataSource', function($q) {
|
|||
return DataSource;
|
||||
});
|
||||
|
||||
module.service('RemoteDataSource', function($q, DataSource) {
|
||||
module.service('RemoteDataSource', function($q, log, DataSource) {
|
||||
var RemoteDataSource = function(url) {
|
||||
DataSource.call(this, url);
|
||||
this.url = url;
|
||||
|
|
@ -121,6 +121,7 @@ module.service('RemoteDataSource', function($q, DataSource) {
|
|||
d.reject(e.code + ' ' + e.reason);
|
||||
} else {
|
||||
this.status = 'disconnected';
|
||||
log.info('Disconnected');
|
||||
}
|
||||
}).bind(this);
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ var module = angular.module('xe.session', []);
|
|||
|
||||
|
||||
module.service('Session', function(
|
||||
$q, $http, log, FileDataSource, RemoteDataSource) {
|
||||
$rootScope, $q, $http, log, FileDataSource, RemoteDataSource) {
|
||||
var Session = function(id, opt_dataSource) {
|
||||
this.id = id;
|
||||
|
||||
|
|
@ -85,6 +85,7 @@ module.service('Session', function(
|
|||
if (this.dataSource) {
|
||||
this.dataSource.dispose();
|
||||
this.dataSource = null;
|
||||
$rootScope.$emit('refresh');
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue