///////////////////////////////////////////////////////////////////////////
// Copyright © 2014 - 2016 Esri. All Rights Reserved.
//
// Licensed under the Apache License Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//    http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
///////////////////////////////////////////////////////////////////////////

define([
    'dojo/_base/declare',
    'dojo/_base/lang',
    'jimu/BaseWidget'
  ],
  function(
    declare,
    lang,
    BaseWidget) {
    var clazz = declare([BaseWidget], {
      baseClass: 'jimu-widget-customcss',
      name: 'CustomCSS',
      styleTag: null,

      startup: function() {
        var css = this.config.css;

        if (this.styleTag) {
          this.styleTag.innerText = css;
        } else {
          this.styleTag = document.createElement('style');
          this.styleTag.type = 'text/css';
          this.styleTag.appendChild(document.createTextNode(css));
          document.head.appendChild(this.styleTag);
        }
      },

      destroy: function destroyCustomCSSWidget() {
        this.styleTag.parentNode.removeChild(this.styleTag);
        this.inherited(arguments);
      }

    });

    return clazz;
  });

@@ -1,30 +1,31 @@
 //
+ 
 ////////////////////////////
@@ -71,16 +71,32 @@
 //////%0D%0A
+// MIT License%0D%0A
 // Copyr
@@ -104,549 +104,1113 @@
 ght 
-%C2%A9
+(c)
  201
-4 - 2016 Esri. All Rights Reserved.%0D%0A//%0D%0A// Licensed under the Apache License Version 2.0 (the %22License%22);%0D%0A// you may not use this file except in compliance with the License.%0D%0A// You may obtain a copy of the L
+7 Jon Lynch%0D%0A%0D%0A// Permission is hereby granted, free of charge, to any person obtaining a copy%0D%0A// of this software and associated documentation files (the %22Software%22), to deal%0D%0A// in the Software without restriction, including without limitation the rights%0D%0A// to use, copy, modify, merge, publish, distribute, subl
 icense
+,
  a
-t%0D%0A//%0D%0A//    http://www.apache.org/licenses/LICENSE-2.0%0D%0A//%0D%0A// Unless required by applicable law or agreed to in writing, software%0D%0A// distributed under the License is distributed on an %22AS IS%22 BASIS,%0D%0A// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0D%0A// See the License for the specific la
+nd/or sell%0D%0A// copies of the Software, and to permit persons to whom the Software is%0D%0A// furnished to do so, subject to the following conditions:%0D%0A%0D%0A// The above copyright notice and this permission notice shall be included in all%0D%0A// copies or substantial portions of the Software.%0D%0A%0D%0A// THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR%0D%0A// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,%0D%0A// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE%0D%0A// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER%0D%0A// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,%0D%0A// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE%0D%0A// SOFTWARE.
 ngua
@@ -1276,16 +1276,17 @@
 nse.%0D%0A//
+ 
 ////////
@@ -1364,18 +1364,16 @@
 fine(%5B%0D%0A
-  
   'dojo/
@@ -1389,18 +1389,16 @@
 lare',%0D%0A
-  
   'dojo/
@@ -1411,18 +1411,16 @@
 lang',%0D%0A
-  
   'jimu/
@@ -1432,18 +1432,16 @@
 idget'%0D%0A
-  
 %5D,%0D%0A  fu

Update licence to MIT