JSFiddle - React, Tailwind, and code Playground

by rudygotya

HTML

<script src="http://code.jquery.com/ui/1.9.0-rc.1/jquery-ui.min.js"></script>
<div id="foo"></div>

CSS

#foo {
    width: 50px;
    height: 50px;
    background: blue;
}

JavaScript

$.extend( Object.prototype, {
    OHNOES : function () {
        console.log( 'someone abused object prototype.' )
    }
});

$.widget( "foo.bar", {
    _create : function () {
        this._on({
            click : this.run
        })
    },
    run : function () {
        console.log( $._data( this.element.get( 0 ) ) )
    }
});

$(function () {
    $('#foo').bar()
});