Code Duplication    Length = 25-25 lines in 2 locations

public/js/tinymce/themes/modern/theme.js 1 location

@@ 2007-2031 (lines=25) @@
2004
        }
2005
        this.data = data;
2006
      },
2007
      set: function (name, value) {
2008
        var key, args;
2009
        var oldValue = this.data[name];
2010
        if (value instanceof Binding) {
2011
          value = value.create(this, name);
2012
        }
2013
        if (typeof name === 'object') {
2014
          for (key in name) {
2015
            this.set(key, name[key]);
2016
          }
2017
          return this;
2018
        }
2019
        if (!isEqual(oldValue, value)) {
2020
          this.data[name] = value;
2021
          args = {
2022
            target: this,
2023
            name: name,
2024
            value: value,
2025
            oldValue: oldValue
2026
          };
2027
          this.fire('change:' + name, args);
2028
          this.fire('change', args);
2029
        }
2030
        return this;
2031
      },
2032
      get: function (name) {
2033
        return this.data[name];
2034
      },

public/js/tinymce/themes/inlite/theme.js 1 location

@@ 1467-1491 (lines=25) @@
1464
        }
1465
        this.data = data;
1466
      },
1467
      set: function (name, value) {
1468
        var key, args;
1469
        var oldValue = this.data[name];
1470
        if (value instanceof Binding) {
1471
          value = value.create(this, name);
1472
        }
1473
        if (typeof name === 'object') {
1474
          for (key in name) {
1475
            this.set(key, name[key]);
1476
          }
1477
          return this;
1478
        }
1479
        if (!isEqual(oldValue, value)) {
1480
          this.data[name] = value;
1481
          args = {
1482
            target: this,
1483
            name: name,
1484
            value: value,
1485
            oldValue: oldValue
1486
          };
1487
          this.fire('change:' + name, args);
1488
          this.fire('change', args);
1489
        }
1490
        return this;
1491
      },
1492
      get: function (name) {
1493
        return this.data[name];
1494
      },