瀏覽代碼

Generate controllerID before using it in tabs.map

Edvinas Bartkus 8 年之前
父節點
當前提交
f7f8c62987
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/deprecated/platformSpecificDeprecated.ios.js

+ 1
- 1
src/deprecated/platformSpecificDeprecated.ios.js 查看文件

@@ -17,6 +17,7 @@ function startTabBasedApp(params) {
17 17
     return;
18 18
   }
19 19
 
20
+  const controllerID = _.uniqueId('controllerID');
20 21
   params.tabs.map(function(tab, index) {
21 22
     const navigatorID = controllerID + '_nav' + index;
22 23
     const screenInstanceID = _.uniqueId('screenInstanceID');
@@ -38,7 +39,6 @@ function startTabBasedApp(params) {
38 39
     };
39 40
   });
40 41
 
41
-  const controllerID = _.uniqueId('controllerID');
42 42
   const Controller = Controllers.createClass({
43 43
     render: function() {
44 44
       if (!params.drawer || (!params.drawer.left && !params.drawer.right)) {