import * as Platform from '../platform';

var ILLEGAL_ASSIGN_FIELDS = {};
export class Ion {

  constructor() {
    var platformName = Platform.getPlatform();
    var platformConfig = this.$config._platforms[platformName];
    if (platformConfig) {
      platformConfig._mixins.forEach(mixin => {
        mixin(this);
      });
    }
  }

  assign() {
    for (var i = 0, ii = arguments.length; i < ii; i++) {
      var obj = arguments[i];
      if (obj) {
        var keys = Object.keys(obj);
        for (var j = 0, jj = keys.length; j < jj; j++) {
          var key = keys[j];
          if (!ILLEGAL_ASSIGN_FIELDS[key]) {
            this[key] = obj[key];
          }
        }
      }
    }
  }

}

@@ -247,16 +247,37 @@
  %7B%0A     
+ for (var i = 0, ii =
  platfor
@@ -296,40 +296,62 @@
 ins.
-forEach(mixin =%3E %7B%0A        
+length; i %3C ii; i++)%0A        platformConfig._
 mixin
+s%5Bi%5D
 (thi
@@ -361,18 +361,16 @@
 %0A      %7D
-);
 %0A    %7D%0A 

use a for loop