[ 
https://issues.apache.org/jira/browse/CB-10428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15116957#comment-15116957
 ] 

ASF GitHub Bot commented on CB-10428:
-------------------------------------

GitHub user sgrebnov opened a pull request:

    https://github.com/apache/cordova-plugin-inappbrowser/pull/141

    CB-10428 Fix syntax error when browserifying inAppBrowser plugin

    https://issues.apache.org/jira/browse/CB-10428
    
    Wrapped module in anonymous function

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

    $ git pull https://github.com/MSOpenTech/cordova-plugin-inappbrowser 
CB-10428

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

    https://github.com/apache/cordova-plugin-inappbrowser/pull/141.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 #141
    
----
commit d3f56b7fd23dfdc9e283769af641007aeb2f0868
Author: sgrebnov <[email protected]>
Date:   2016-01-26T09:06:49Z

    CB-10428 Fix syntax error when browserifying inAppBrowser plugin

----


> Fix syntax error when browserifying inAppBrowser plugin
> -------------------------------------------------------
>
>                 Key: CB-10428
>                 URL: https://issues.apache.org/jira/browse/CB-10428
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin InAppBrowser
>    Affects Versions: 1.2.0
>            Reporter: Alex Buijs
>            Assignee: Sergey Grebnov
>              Labels: Triaged, reproduced
>
> When building a Cordova project that includes this plugin with the 
> --browserify option, a syntax error is raised:
> {code}
> events.js:141
>       throw er; // Unhandled 'error' event
>       ^
> SyntaxError: 'return' outside of function (25:4) (while aliasify was 
> processing plugins/cordova-plugin-inappbrowser/www/inappbrowser.js) while 
> parsing file: plugins/cordova-plugin-inappbrowser/www/inappbrowser.js
> {code}
> Steps to reproduce:
> {code}
> cordova create hello com.example.hello HelloWorld
> cd hello
> cordova platform add android
> cordova plugin add cordova-plugin-inappbrowser
> cordova prepare --browserify
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to