cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [2/3] cordova-plugin-vibration git commit: Removed call to add proxy and renamed browser file
Date Wed, 02 Sep 2015 05:49:01 GMT
Removed call to add proxy and renamed browser file


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/commit/6111d622
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/tree/6111d622
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/diff/6111d622

Branch: refs/heads/master
Commit: 6111d62262d280a8afdf6e47521123358295fe79
Parents: aa9835a
Author: Suraj Pindoria <suraj.pindoria@yahoo.com>
Authored: Tue Sep 1 11:51:20 2015 -0700
Committer: Suraj Pindoria <suraj.pindoria@yahoo.com>
Committed: Tue Sep 1 11:51:20 2015 -0700

----------------------------------------------------------------------
 plugin.xml                    |  2 +-
 src/browser/Vibration.js      | 29 +++++++++++++++++++++++++++++
 src/browser/VibrationProxy.js | 31 -------------------------------
 3 files changed, 30 insertions(+), 32 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/6111d622/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index c178327..51df391 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -140,7 +140,7 @@
 
     <!-- browser -->
     <platform name="browser">
-        <js-module src="src/browser/VibrationProxy.js" name="VibrationProxy">
+        <js-module src="src/browser/Vibration.js" name="Vibration">
             <clobbers target="navigator" />
         </js-module>
     </platform>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/6111d622/src/browser/Vibration.js
----------------------------------------------------------------------
diff --git a/src/browser/Vibration.js b/src/browser/Vibration.js
new file mode 100644
index 0000000..04f1759
--- /dev/null
+++ b/src/browser/Vibration.js
@@ -0,0 +1,29 @@
+/*
+ *
+ * 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');
+
+module.exports = {
+    vibrate: function(success, fail, milliseconds) {
+        console.log('Vibration is not supported');
+        return false;
+    }
+};

http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/6111d622/src/browser/VibrationProxy.js
----------------------------------------------------------------------
diff --git a/src/browser/VibrationProxy.js b/src/browser/VibrationProxy.js
deleted file mode 100644
index 4d7825b..0000000
--- a/src/browser/VibrationProxy.js
+++ /dev/null
@@ -1,31 +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');
-
-module.exports = {
-    vibrate: function(success, fail, milliseconds) {
-        console.log('Vibration is not supported');
-        return false;
-    }
-};
-
-require('cordova/exec/proxy').add('Vibration', module.exports);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message