[GitHub] incubator-weex issue #1383: [jsfm] change vRef to ref

2018-07-27 Thread weex-bot
Github user weex-bot commented on the issue:

https://github.com/apache/incubator-weex/pull/1383
  





  

  
  Warnings

  
  
  :warning:
  No Changelog changes!

  




  

  
  Messages

  
  
  :book:
  danger test finished.

  




  Generated by :no_entry_sign: http://github.com/danger/danger-js/;>dangerJS




---


[GitHub] incubator-weex pull request #1383: [jsfm] change vRef to ref

2018-07-27 Thread imyzf
GitHub user imyzf opened a pull request:

https://github.com/apache/incubator-weex/pull/1383

[jsfm] change vRef to ref

First of all, thank you for your contribution! 

Please makes sure that these checkboxes are checked before submitting your 
PR, thank you!



CheckList:

**if** *isBugFix* **:**

  * [ ] Make sure that you add at least one unit test for the bug which you 
had fixed.

**elif** *isNewFeature* **:**

  * [ ] Update API docs for the component.
  * [ ] Update/Add demo to demonstrate new feature.
  * [ ] Update test scripts for the feature.
  * [ ] Add unit tests for the feature.






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

$ git pull https://github.com/imyzf/incubator-weex master

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

https://github.com/apache/incubator-weex/pull/1383.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 #1383


commit 3ff4ab86e3d06bd7f410a523d3fdf19f3f1b9b4d
Author: Zhenfei You 
Date:   2018-07-27T09:50:57Z

[jsfm] change vRef to ref




---


[GitHub] incubator-weex pull request #1356: [WEEX-495][iOS] Fix class_replaceMethod p...

2018-07-27 Thread xuyouyang
Github user xuyouyang closed the pull request at:

https://github.com/apache/incubator-weex/pull/1356


---


incubator-weex git commit: * [Android] Fix some ConcurrentModificationException

2018-07-27 Thread kyork
Repository: incubator-weex
Updated Branches:
  refs/heads/master af068c0a6 -> 2ace11d72


* [Android] Fix some ConcurrentModificationException


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/2ace11d7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/2ace11d7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/2ace11d7

Branch: refs/heads/master
Commit: 2ace11d7243d7463998a82e47369ad32d9bbcf8f
Parents: af068c0
Author: miomin 
Authored: Thu Jul 26 17:49:20 2018 +0800
Committer: YorkShen 
Committed: Fri Jul 27 14:18:39 2018 +0800

--
 .../weex/ui/component/list/BasicListComponent.java | 10 --
 .../weex/ui/view/refresh/core/WXSwipeLayout.java   | 13 +++--
 2 files changed, 19 insertions(+), 4 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/2ace11d7/android/sdk/src/main/java/com/taobao/weex/ui/component/list/BasicListComponent.java
--
diff --git 
a/android/sdk/src/main/java/com/taobao/weex/ui/component/list/BasicListComponent.java
 
b/android/sdk/src/main/java/com/taobao/weex/ui/component/list/BasicListComponent.java
index 14dc743..c6adf80 100644
--- 
a/android/sdk/src/main/java/com/taobao/weex/ui/component/list/BasicListComponent.java
+++ 
b/android/sdk/src/main/java/com/taobao/weex/ui/component/list/BasicListComponent.java
@@ -289,8 +289,14 @@ public abstract class BasicListComponent listeners = 
getInstance().getWXScrollListeners();
-if (listeners != null && listeners.size() > 0) {
-  for (OnWXScrollListener listener : listeners) {
+int size;
+OnWXScrollListener listener;
+if (listeners != null && (size = listeners.size()) > 0) {
+  for (int i=0; i= listeners.size()){
+  break;
+}
+listener = listeners.get(i);
 if (listener != null) {
   View topView = recyclerView.getChildAt(0);
   if (topView != null) {

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/2ace11d7/android/sdk/src/main/java/com/taobao/weex/ui/view/refresh/core/WXSwipeLayout.java
--
diff --git 
a/android/sdk/src/main/java/com/taobao/weex/ui/view/refresh/core/WXSwipeLayout.java
 
b/android/sdk/src/main/java/com/taobao/weex/ui/view/refresh/core/WXSwipeLayout.java
index e6818e1..9f66c03 100644
--- 
a/android/sdk/src/main/java/com/taobao/weex/ui/view/refresh/core/WXSwipeLayout.java
+++ 
b/android/sdk/src/main/java/com/taobao/weex/ui/view/refresh/core/WXSwipeLayout.java
@@ -767,8 +767,17 @@ public class WXSwipeLayout extends FrameLayout implements 
NestedScrollingParent,
   }
 
   private void notifyOnRefreshOffsetChangedListener(int verticalOffset) {
-for(OnRefreshOffsetChangedListener listener : 
mRefreshOffsetChangedListeners) {
-  listener.onOffsetChanged(verticalOffset);
+int size = mRefreshOffsetChangedListeners.size();
+OnRefreshOffsetChangedListener listener;
+for (int i=0; i= mRefreshOffsetChangedListeners.size()){
+break;
+  }
+  listener = mRefreshOffsetChangedListeners.get(i);
+
+  if (listener != null) {
+listener.onOffsetChanged(verticalOffset);
+  }
 }
   }