Skip to content
Permalink
Browse files
[CB-3193] [BlackBerry10] Remove all plugins from cordova-js
  • Loading branch information
bryanhiggins committed Jul 4, 2013
1 parent 5409661 commit 08a2641cf76797797208159d6a2c2f3ca714a3bb
Show file tree
Hide file tree
Showing 19 changed files with 6 additions and 2,045 deletions.
@@ -2,3 +2,4 @@ pkg/
tags
.DS_Store
node_modules/
.gitkeep
@@ -19,29 +19,4 @@
*
*/

var cordova = require('cordova'),
plugins = {
'Compass' : require('cordova/plugin/blackberry10/magnetometer'),
'FileTransfer': require('cordova/plugin/blackberry10/fileTransfer')
};

/**
* Execute a cordova command. It is up to the native side whether this action
* is synchronous or asynchronous. The native side can return:
* Synchronous: PluginResult object as a JSON string
* Asynchronous: Empty string ""
* If async, the native side will cordova.callbackSuccess or cordova.callbackError,
* depending upon the result of the action.
*
* @param {Function} success The success callback
* @param {Function} fail The fail callback
* @param {String} service The name of the service to use
* @param {String} action Action to be run in cordova
* @param {String[]} [args] Zero or more arguments to pass to the method
*/
module.exports = function (success, fail, service, action, args) {
if (plugins[service] && plugins[service][action]) {
return plugins[service][action](args, success, fail);
}
return webworks.exec(success, fail, service, action, args);
};
module.exports = webworks.exec;
@@ -28,11 +28,6 @@ module.exports = {

modulemapper.loadMatchingModules(/cordova.*\/symbols$/);
modulemapper.loadMatchingModules(new RegExp('cordova/blackberry10/.*bbsymbols$'));

modulemapper.clobbers('cordova/plugin/blackberry10/vibrate', 'navigator.notification.vibrate');
modulemapper.clobbers('cordova/plugin/File', 'File');
modulemapper.merges('cordova/plugin/blackberry10/compass', 'navigator.compass');

modulemapper.mapModules(window);

//override to pass online/offline events to window
@@ -42,6 +37,6 @@ module.exports = {
} else {
addDocumentEventListener.apply(document, arguments);
}
}
};
}
};
Empty file.

This file was deleted.

This file was deleted.

0 comments on commit 08a2641

Please sign in to comment.