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/05/14 23:13:03 UTC
[24/38] js commit: [BlackBerry10] Remove accelerometer plugin
[BlackBerry10] Remove accelerometer plugin
Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/df382c01
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/df382c01
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/df382c01
Branch: refs/heads/3.0.0
Commit: df382c01e8ba23383ccdb304b169a220a1adb8dc
Parents: 8b06f29
Author: Bryan Higgins <bh...@blackberry.com>
Authored: Thu Apr 11 16:14:14 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Fri May 3 09:50:04 2013 -0400
----------------------------------------------------------------------
.../plugin/blackberry10/accelerometer.js | 43 ---------------
1 files changed, 0 insertions(+), 43 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-js/blob/df382c01/lib/blackberry10/plugin/blackberry10/accelerometer.js
----------------------------------------------------------------------
diff --git a/lib/blackberry10/plugin/blackberry10/accelerometer.js b/lib/blackberry10/plugin/blackberry10/accelerometer.js
deleted file mode 100644
index 70142fa..0000000
--- a/lib/blackberry10/plugin/blackberry10/accelerometer.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-var cordova = require('cordova'),
- callback;
-
-module.exports = {
- start: function (args, win, fail) {
- window.removeEventListener("devicemotion", callback);
- callback = function (motion) {
- win({
- x: motion.accelerationIncludingGravity.x,
- y: motion.accelerationIncludingGravity.y,
- z: motion.accelerationIncludingGravity.z,
- timestamp: motion.timestamp
- });
- };
- window.addEventListener("devicemotion", callback);
- return { "status" : cordova.callbackStatus.NO_RESULT, "message" : "WebWorks Is On It" };
- },
- stop: function (args, win, fail) {
- window.removeEventListener("devicemotion", callback);
- return { "status" : cordova.callbackStatus.OK, "message" : "removed" };
- }
-};