Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Commit

Permalink
fix safeShutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
ozsay committed Oct 30, 2015
1 parent 05a5d87 commit 572bbed
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions angular-electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var nodeModules = ['buffer', 'child_process', 'cluster', 'crypto', 'dns', 'event
'string_decoder', 'tls', 'dgram', 'url', 'util', 'v8', 'vm', 'zlib'];

angular.module('angular-electron').provider('remote', ['$provide', function($provide) {
var _remote = 'remote'
var _remote = 'remote';
var remote = require(_remote);

function register(name, _require) {
Expand Down Expand Up @@ -70,13 +70,13 @@ angular.module('angular-electron').service('safeShutdown', ['$q', 'currentWindow
var actions = [];

function register(fn) {
this.actions.push(fn);
actions.push(fn);
}

function exec() {
var promises = [];

angular.forEach(this.actions, function (action) {
angular.forEach(actions, function (action) {
var res = action();

if (res !== undefined && res.then !== undefined) {
Expand Down
2 changes: 1 addition & 1 deletion angular-electron.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-electron",
"version": "0.1.7",
"version": "0.1.8",
"description": "angularjs helpers for electron apps",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var nodeModules = ['buffer', 'child_process', 'cluster', 'crypto', 'dns', 'event
'string_decoder', 'tls', 'dgram', 'url', 'util', 'v8', 'vm', 'zlib'];

angular.module('angular-electron').provider('remote', ['$provide', function($provide) {
var _remote = 'remote'
var _remote = 'remote';
var remote = require(_remote);

function register(name, _require) {
Expand Down
4 changes: 2 additions & 2 deletions src/safeShutdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ angular.module('angular-electron').service('safeShutdown', ['$q', 'currentWindow
var actions = [];

function register(fn) {
this.actions.push(fn);
actions.push(fn);
}

function exec() {
var promises = [];

angular.forEach(this.actions, function (action) {
angular.forEach(actions, function (action) {
var res = action();

if (res !== undefined && res.then !== undefined) {
Expand Down

0 comments on commit 572bbed

Please sign in to comment.