rename Deluge.Sorters to Deluge.data.SortTypes and reflect this within the file
This commit is contained in:
parent
4ec10575f3
commit
676c59c318
|
@ -4,7 +4,7 @@ add_file "Deluge.js"
|
||||||
add_file "Deluge.Formatters.js"
|
add_file "Deluge.Formatters.js"
|
||||||
add_file "Deluge.Keys.js"
|
add_file "Deluge.Keys.js"
|
||||||
add_file "Deluge.Menus.js"
|
add_file "Deluge.Menus.js"
|
||||||
add_file "Deluge.Sorters.js"
|
add_file "Deluge.data.SortTypes.js"
|
||||||
add_file "Deluge.EventsManager.js"
|
add_file "Deluge.EventsManager.js"
|
||||||
add_file "Deluge.OptionsManager.js"
|
add_file "Deluge.OptionsManager.js"
|
||||||
add_file "Deluge.MultiOptionsManager.js"
|
add_file "Deluge.MultiOptionsManager.js"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
Script: Deluge.data.Peer.js
|
Script: Deluge.data.SortTypes.js
|
||||||
Contains the definition for a Peer record.
|
Contains some useful sorters for use in data stores.
|
||||||
|
|
||||||
Copyright:
|
Copyright:
|
||||||
(C) Damien Churchill 2009-2010 <damoxc@gmail.com>
|
(C) Damien Churchill 2009-2010 <damoxc@gmail.com>
|
||||||
|
@ -31,7 +31,7 @@ Copyright:
|
||||||
statement from all source files in the program, then also delete it here.
|
statement from all source files in the program, then also delete it here.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Ext.namespace('Deluge');
|
Ext.namespace('Deluge.data');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Common sort functions that can be used for data Stores.
|
* Common sort functions that can be used for data Stores.
|
||||||
|
@ -39,11 +39,11 @@ Ext.namespace('Deluge');
|
||||||
* @author Damien Churchill <damoxc@gmail.com>
|
* @author Damien Churchill <damoxc@gmail.com>
|
||||||
* @version 1.3
|
* @version 1.3
|
||||||
*
|
*
|
||||||
* @class Deluge.Sorters
|
* @class Deluge.data.SortTypes
|
||||||
* @singleton
|
* @singleton
|
||||||
*/
|
*/
|
||||||
Deluge.Sorters = {
|
Deluge.data.SortTypes = {
|
||||||
ipAddress: function(value) {
|
asIPAddress: function(value) {
|
||||||
var d = value.match(/(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\:(\d+)/);
|
var d = value.match(/(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\:(\d+)/);
|
||||||
return ((((((+d[1])*256)+(+d[2]))*256)+(+d[3]))*256)+(+d[4]);
|
return ((((((+d[1])*256)+(+d[2]))*256)+(+d[3]))*256)+(+d[4]);
|
||||||
}
|
}
|
|
@ -325,7 +325,7 @@ class TopLevel(resource.Resource):
|
||||||
"js/deluge-all/Deluge.js",
|
"js/deluge-all/Deluge.js",
|
||||||
"js/deluge-all/Deluge.Formatters.js",
|
"js/deluge-all/Deluge.Formatters.js",
|
||||||
"js/deluge-all/Deluge.Menus.js",
|
"js/deluge-all/Deluge.Menus.js",
|
||||||
"js/deluge-all/Deluge.Sorters.js",
|
"js/deluge-all/Deluge.data.SortTypes.js",
|
||||||
"js/deluge-all/Deluge.EventsManager.js",
|
"js/deluge-all/Deluge.EventsManager.js",
|
||||||
"js/deluge-all/Deluge.OptionsManager.js",
|
"js/deluge-all/Deluge.OptionsManager.js",
|
||||||
"js/deluge-all/Deluge.MultiOptionsManager.js",
|
"js/deluge-all/Deluge.MultiOptionsManager.js",
|
||||||
|
|
Loading…
Reference in New Issue