You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/10/25 23:33:57 UTC

[09/12] git commit: new plugin style

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 <pi...@zalewa.info>
Authored: Fri Oct 25 10:03:34 2013 +0200
Committer: Piotr Zalewa <pi...@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);