You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by sarangan12 <gi...@git.apache.org> on 2016/02/08 21:36:56 UTC

[GitHub] cordova-app-hello-world pull request: CB-10522: Event binding in H...

GitHub user sarangan12 opened a pull request:

    https://github.com/apache/cordova-app-hello-world/pull/15

    CB-10522: Event binding in Hello World is misleading

    The current event binding in the Hello World example is slightly misleading. So, fixing it. 
    
    @nikhilkh @dblotsky @riknoll @rkatyal Can you please review and merge this PR?

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

    $ git pull https://github.com/sarangan12/cordova-app-hello-world CB-10522

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

    https://github.com/apache/cordova-app-hello-world/pull/15.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 #15
    
----
commit a17a3d289a6e1428a34068040563d998faf63fc0
Author: Sarangan Rajamanickam <sa...@microsoft.com>
Date:   2016-02-05T19:25:34Z

    CB-10522: Event binding in Hello World is misleading
    
    Fixing the Hello World example

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-app-hello-world pull request: CB-10522: Event binding in H...

Posted by sarangan12 <gi...@git.apache.org>.
Github user sarangan12 commented on the pull request:

    https://github.com/apache/cordova-app-hello-world/pull/15#issuecomment-181659458
  
    @axemclion  Can you review this PR?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-app-hello-world pull request: CB-10522: Event binding in H...

Posted by dblotsky <gi...@git.apache.org>.
Github user dblotsky commented on a diff in the pull request:

    https://github.com/apache/cordova-app-hello-world/pull/15#discussion_r52271030
  
    --- Diff: www/js/index.js ---
    @@ -19,22 +19,20 @@
     var app = {
         // Application Constructor
         initialize: function() {
    -        this.bindEvents();
    -    },
    -    // Bind Event Listeners
    -    //
    -    // Bind any events that are required on startup. Common events are:
    -    // 'load', 'deviceready', 'offline', and 'online'.
    -    bindEvents: function() {
             document.addEventListener('deviceready', this.onDeviceReady, false);
    --- End diff --
    
    Any variables in `app`'s scope are already in `onDeviceReady`'s scope.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-app-hello-world pull request: CB-10522: Event binding in H...

Posted by axemclion <gi...@git.apache.org>.
Github user axemclion commented on a diff in the pull request:

    https://github.com/apache/cordova-app-hello-world/pull/15#discussion_r52264119
  
    --- Diff: www/js/index.js ---
    @@ -19,22 +19,20 @@
     var app = {
         // Application Constructor
         initialize: function() {
    -        this.bindEvents();
    -    },
    -    // Bind Event Listeners
    -    //
    -    // Bind any events that are required on startup. Common events are:
    -    // 'load', 'deviceready', 'offline', and 'online'.
    -    bindEvents: function() {
             document.addEventListener('deviceready', this.onDeviceReady, false);
    --- End diff --
    
    Do we wanna do a this.onDeviceReady.bind(this) here ? 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-app-hello-world pull request: CB-10522: Event binding in H...

Posted by dblotsky <gi...@git.apache.org>.
Github user dblotsky commented on the pull request:

    https://github.com/apache/cordova-app-hello-world/pull/15#issuecomment-184885794
  
    Cool, seems like we've reached a consensus. Merging!


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-app-hello-world pull request: CB-10522: Event binding in H...

Posted by dblotsky <gi...@git.apache.org>.
Github user dblotsky commented on the pull request:

    https://github.com/apache/cordova-app-hello-world/pull/15#issuecomment-181673845
  
    Will this also be going out as an email to the dev@ list?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-app-hello-world pull request: CB-10522: Event binding in H...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/cordova-app-hello-world/pull/15


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-app-hello-world pull request: CB-10522: Event binding in H...

Posted by dblotsky <gi...@git.apache.org>.
Github user dblotsky commented on the pull request:

    https://github.com/apache/cordova-app-hello-world/pull/15#issuecomment-181630866
  
    LGTM.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-app-hello-world pull request: CB-10522: Event binding in H...

Posted by devgeeks <gi...@git.apache.org>.
Github user devgeeks commented on the pull request:

    https://github.com/apache/cordova-app-hello-world/pull/15#issuecomment-184856505
  
    LGTM. That third layer of binding always seemed confusing.
    
    :+1: 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-app-hello-world pull request: CB-10522: Event binding in H...

Posted by riknoll <gi...@git.apache.org>.
Github user riknoll commented on the pull request:

    https://github.com/apache/cordova-app-hello-world/pull/15#issuecomment-181674386
  
    @dblotsky yes. Definitely needs dev list approval.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-app-hello-world pull request: CB-10522: Event binding in H...

Posted by sarangan12 <gi...@git.apache.org>.
Github user sarangan12 commented on the pull request:

    https://github.com/apache/cordova-app-hello-world/pull/15#issuecomment-183448308
  
    @axemclion Can you check now?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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