JQuery UI custom assembly - how do I know which components are included?

I have two custom jQuery UI assemblies; they were made by different people from different versions of the code (1.8.9 compared to 1.8.11). File sizes differ by 50 thousand. Therefore, obviously, each of them includes different components. Is there a command / script that I can run that will list the included components for each of them? I am trying to create one new assembly to replace both.

+3
source share
2 answers

View. You can grab the names under $ .ui and compare them together.

var names = [];
for(name in $.ui)
   names.push(name);

It will also take a bunch of other methods, but you will get the names of the installed plugins.

+5
source

script. , , . Draggable 1.8.9:

;/*
* jQuery UI Draggable 1.8.9 
* 
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) 
* Dual licensed under the MIT or GPL Version 2 licenses. 
* http://jquery.org/license 
* 
* http://docs.jquery.com/UI/Draggables 
* 
* Depends: 
*    jquery.ui.core.js 
*    jquery.ui.mouse.js 
*    jquery.ui.widget.js 
*/

, , , .

+1

All Articles