Skip to content
This repository was archived by the owner on Sep 15, 2021. It is now read-only.

Commit c82f83f

Browse files
committed
chore(rebuild): dist
1 parent cf24889 commit c82f83f

File tree

4 files changed

+84
-84
lines changed

4 files changed

+84
-84
lines changed

demo/www/lib/ngCordova/dist/ng-cordova.js

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -3118,51 +3118,51 @@ angular.module('ngCordova.plugins.keychain', [])
31183118
angular.module('ngCordova.plugins.localNotification', [])
31193119

31203120
.factory('$cordovaLocalNotification', ['$q', '$window', '$rootScope', function ($q, $window, $rootScope) {
3121-
3122-
$window.plugin.notification.local.oncancel = function (id, state, json) {
3123-
var notification = {
3124-
id: id,
3125-
state: state,
3126-
json: json
3121+
if($window.plugin && $window.plugin.notification) {
3122+
$window.plugin.notification.local.oncancel = function (id, state, json) {
3123+
var notification = {
3124+
id: id,
3125+
state: state,
3126+
json: json
3127+
};
3128+
$rootScope.$apply(function () {
3129+
$rootScope.$broadcast("localNotification:canceled", notification)
3130+
})
31273131
};
3128-
$rootScope.$apply(function () {
3129-
$rootScope.$broadcast("localNotification:canceled", notification)
3130-
})
3131-
};
3132-
3133-
$window.plugin.notification.local.onclick = function (id, state, json) {
3134-
var notification = {
3135-
id: id,
3136-
state: state,
3137-
json: json
3132+
3133+
$window.plugin.notification.local.onclick = function (id, state, json) {
3134+
var notification = {
3135+
id: id,
3136+
state: state,
3137+
json: json
3138+
};
3139+
$rootScope.$apply(function () {
3140+
$rootScope.$broadcast("localNotification:clicked", notification)
3141+
})
31383142
};
3139-
$rootScope.$apply(function () {
3140-
$rootScope.$broadcast("localNotification:clicked", notification)
3141-
})
3142-
};
3143-
3144-
$window.plugin.notification.local.ontrigger = function (id, state, json) {
3145-
var notification = {
3146-
id: id,
3147-
state: state,
3148-
json: json
3143+
3144+
$window.plugin.notification.local.ontrigger = function (id, state, json) {
3145+
var notification = {
3146+
id: id,
3147+
state: state,
3148+
json: json
3149+
};
3150+
$rootScope.$apply(function () {
3151+
$rootScope.$broadcast("localNotification:triggered", notification)
3152+
})
31493153
};
3150-
$rootScope.$apply(function () {
3151-
$rootScope.$broadcast("localNotification:triggered", notification)
3152-
})
3153-
};
3154-
3155-
$window.plugin.notification.local.onadd = function (id, state, json) {
3156-
var notification = {
3157-
id: id,
3158-
state: state,
3159-
json: json
3154+
3155+
$window.plugin.notification.local.onadd = function (id, state, json) {
3156+
var notification = {
3157+
id: id,
3158+
state: state,
3159+
json: json
3160+
};
3161+
$rootScope.$apply(function () {
3162+
$rootScope.$broadcast("localNotification:added", notification)
3163+
})
31603164
};
3161-
$rootScope.$apply(function () {
3162-
$rootScope.$broadcast("localNotification:added", notification)
3163-
})
3164-
};
3165-
3165+
}
31663166
return {
31673167
add: function (options, scope) {
31683168
var q = $q.defer();

demo/www/lib/ngCordova/dist/ng-cordova.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ng-cordova.js

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -3118,51 +3118,51 @@ angular.module('ngCordova.plugins.keychain', [])
31183118
angular.module('ngCordova.plugins.localNotification', [])
31193119

31203120
.factory('$cordovaLocalNotification', ['$q', '$window', '$rootScope', function ($q, $window, $rootScope) {
3121-
3122-
$window.plugin.notification.local.oncancel = function (id, state, json) {
3123-
var notification = {
3124-
id: id,
3125-
state: state,
3126-
json: json
3121+
if($window.plugin && $window.plugin.notification) {
3122+
$window.plugin.notification.local.oncancel = function (id, state, json) {
3123+
var notification = {
3124+
id: id,
3125+
state: state,
3126+
json: json
3127+
};
3128+
$rootScope.$apply(function () {
3129+
$rootScope.$broadcast("localNotification:canceled", notification)
3130+
})
31273131
};
3128-
$rootScope.$apply(function () {
3129-
$rootScope.$broadcast("localNotification:canceled", notification)
3130-
})
3131-
};
3132-
3133-
$window.plugin.notification.local.onclick = function (id, state, json) {
3134-
var notification = {
3135-
id: id,
3136-
state: state,
3137-
json: json
3132+
3133+
$window.plugin.notification.local.onclick = function (id, state, json) {
3134+
var notification = {
3135+
id: id,
3136+
state: state,
3137+
json: json
3138+
};
3139+
$rootScope.$apply(function () {
3140+
$rootScope.$broadcast("localNotification:clicked", notification)
3141+
})
31383142
};
3139-
$rootScope.$apply(function () {
3140-
$rootScope.$broadcast("localNotification:clicked", notification)
3141-
})
3142-
};
3143-
3144-
$window.plugin.notification.local.ontrigger = function (id, state, json) {
3145-
var notification = {
3146-
id: id,
3147-
state: state,
3148-
json: json
3143+
3144+
$window.plugin.notification.local.ontrigger = function (id, state, json) {
3145+
var notification = {
3146+
id: id,
3147+
state: state,
3148+
json: json
3149+
};
3150+
$rootScope.$apply(function () {
3151+
$rootScope.$broadcast("localNotification:triggered", notification)
3152+
})
31493153
};
3150-
$rootScope.$apply(function () {
3151-
$rootScope.$broadcast("localNotification:triggered", notification)
3152-
})
3153-
};
3154-
3155-
$window.plugin.notification.local.onadd = function (id, state, json) {
3156-
var notification = {
3157-
id: id,
3158-
state: state,
3159-
json: json
3154+
3155+
$window.plugin.notification.local.onadd = function (id, state, json) {
3156+
var notification = {
3157+
id: id,
3158+
state: state,
3159+
json: json
3160+
};
3161+
$rootScope.$apply(function () {
3162+
$rootScope.$broadcast("localNotification:added", notification)
3163+
})
31603164
};
3161-
$rootScope.$apply(function () {
3162-
$rootScope.$broadcast("localNotification:added", notification)
3163-
})
3164-
};
3165-
3165+
}
31663166
return {
31673167
add: function (options, scope) {
31683168
var q = $q.defer();

dist/ng-cordova.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)