File: public/assets/local/js/ie.fix.min.js

Recommend this page to a friend!
  Classes of Aby Dahana  >  Aksara  >  public/assets/local/js/ie.fix.min.js  >  Download  
File: public/assets/local/js/ie.fix.min.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Aksara
A CodeIgniter based API and CRUD generator
Author: By
Last change: Initial commit
Initial commit
Date: 2 months ago
Size: 771 bytes
 

Contents

Class file image Download
/**
 * Fix javascript that not supported by IE
 *
 * @version			1.0.1
 * @author			Aby Dahana
 * @profile			abydahana.github.com
 *
 * Property of Aksara Laboratory
 * www.aksaracms.com
 */

/**
 * Fix unsupported Object.assign in IE
 */
if(typeof Object.assign !== 'function')
{
	Object.assign									= function(target)
	{
		if(target === null)
		{
			throw new TypeError('Cannot convert undefined or null to object');
		}
		target										= Object(target);
		for(var index = 1; index < arguments.length; index++)
		{
			var source								= arguments[index];
			if(source !== null)
			{
				for(var key in source)
				{
					if(Object.prototype.hasOwnProperty.call(source, key))
					{
						target[key]					= source[key];
					}
				}
			}
		}
		return target;
	};
}

For more information send a message to info at phpclasses dot org.