GitHub user TimBarham opened a pull request:

    https://github.com/apache/cordova-plugin-device-motion/pull/33

    CB-9426 Fix exception using device motion plugin on browser platform

    The plugin's `plugin.xml` defines a general `<js-module>` with the name 
`accelerometer`. It defines another `<js-module>` for the `browser` platform 
with the same name. Modules with the same name are not allowed, so Cordova 
throws an exception at runtime when trying to define the browser version of the 
module.
    
    Fix is to rename the browser version of the module `browser-accelerometer`.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/MSOpenTech/cordova-plugin-device-motion 
CB-9426

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-device-motion/pull/33.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #33
    
----
commit 15ab61a5b15487fc79e657f973fd5a8bcac0cdbf
Author: Tim Barham <[email protected]>
Date:   2015-07-29T00:19:43Z

    CB-9426 Fix exception when using device motion plugin on browser platform.
    
    The plugin's plugin.xml defines a general <js-module> with the name 
'accelerometer'. It defines another <js-module> for the browser platform (that 
merges with the general module) with the same name. Modules with the same name 
is not allowed, so Cordova throws an exception at runtime when trying to define 
the browser version of the module.
    
    Fix is to rename the browser module 'browser-accelerometer'.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to