Skip to content

Commit

Permalink
Remove jQuery plugin (still allow passing a jQuery element to init, b…
Browse files Browse the repository at this point in the history
…ut don't allow `$('#cy-div').cytoscape(...)` syntax) #1539
  • Loading branch information
maxkfranz committed Sep 21, 2016
1 parent 4838ffb commit a76cecd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 77 deletions.
11 changes: 0 additions & 11 deletions src/index.js
Expand Up @@ -6,7 +6,6 @@ var window = require( './window' );
var is = require( './is' );
var Core = require( './core' );
var extension = require( './extension' );
var registerJquery = require( './jquery-plugin' );
var Stylesheet = require( './stylesheet' );
var Thread = require( './thread' );
var Fabric = require( './fabric' );
Expand All @@ -31,16 +30,6 @@ var cytoscape = function( options ){ // jshint ignore:line
// replaced by build system
cytoscape.version = require('./version.json');

// try to register w/ jquery
if( window && window.jQuery ){
registerJquery( window.jQuery, cytoscape );
}

// expose register api
cytoscape.registerJquery = function( jQuery ){
registerJquery( jQuery, cytoscape );
};

// expose public apis (mostly for extensions)
cytoscape.stylesheet = cytoscape.Stylesheet = Stylesheet;
cytoscape.thread = cytoscape.Thread = Thread;
Expand Down
66 changes: 0 additions & 66 deletions src/jquery-plugin.js

This file was deleted.

0 comments on commit a76cecd

Please sign in to comment.