import $ from 'jquery';

export default function plugit( pluginName, pluginClass ) {
	let dataName = `plugin_${pluginName}`;

	$.fn[pluginName] = function( options ) {
		return this.each( function() {
			let $this = $( this );
			let data = $this.data( dataName );

			if ( ! data ) {
				$this.data( dataName, ( data = new pluginClass( this, options ) ) );
			}
		} );
	};

}

@@ -156,17 +156,14 @@
  opt
-ion
 s ) %7B%0A
+
 %09%09re
@@ -217,16 +217,16 @@
 this );%0A
-
 %09%09%09let d
@@ -254,16 +254,136 @@
 aName );
+%0A%09%09%09let options = $.extend( %7B%7D, this._defaults, opts );%0A%0A%09%09%09pluginClass.element = this;%0A%09%09%09pluginClass.$element = $this;
 %0A%0A%09%09%09if 

Add cached element and props before construction, merge defaults.