Browse Source

Temp fix for set buttons immutability issue (#630)

Guy Carmeli 8 years ago
parent
commit
d43b8f2112
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/deprecated/platformSpecificDeprecated.android.js

+ 2
- 1
src/deprecated/platformSpecificDeprecated.android.js View File

@@ -258,7 +258,8 @@ function convertAnimationType(animationType) {
258 258
   return animationType !== 'none';
259 259
 }
260 260
 
261
-function navigatorSetButtons(navigator, navigatorEventID, params) {
261
+function navigatorSetButtons(navigator, navigatorEventID, _params) {
262
+  const params = _.cloneDeep(_params);
262 263
   if (params.rightButtons) {
263 264
     params.rightButtons.forEach(function(button) {
264 265
       button.enabled = !button.disabled;