cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [09/12] git commit: new plugin style
Date Fri, 25 Oct 2013 21:33:57 GMT
new plugin style


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/commit/25e6a24d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/tree/25e6a24d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/diff/25e6a24d

Branch: refs/heads/dev
Commit: 25e6a24d6c624efb91d83c5a308306028e1586e9
Parents: 01db31e
Author: Piotr Zalewa <piotr@zalewa.info>
Authored: Fri Oct 25 10:03:34 2013 +0200
Committer: Piotr Zalewa <piotr@zalewa.info>
Committed: Fri Oct 25 10:03:34 2013 +0200

----------------------------------------------------------------------
 src/firefoxos/notification.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/blob/25e6a24d/src/firefoxos/notification.js
----------------------------------------------------------------------
diff --git a/src/firefoxos/notification.js b/src/firefoxos/notification.js
index cde4eae..e31eef7 100644
--- a/src/firefoxos/notification.js
+++ b/src/firefoxos/notification.js
@@ -1,6 +1,3 @@
-
-var firefoxos = require('cordova/platform');
-
 function _empty() {}
 
 function modal(message, callback, title, buttonLabels, domObjects) {
@@ -96,4 +93,5 @@ var Notification = {
     }
 };
 
-firefoxos.registerPlugin('Notification', Notification);
+module.exports = Notification;
+require('cordova/firefoxos/commandProxy').add('Notification', Notification);


Mime
View raw message