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.Keys.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.OptionsManager.js"
|
||||
add_file "Deluge.MultiOptionsManager.js"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
Script: Deluge.data.Peer.js
|
||||
Contains the definition for a Peer record.
|
||||
Script: Deluge.data.SortTypes.js
|
||||
Contains some useful sorters for use in data stores.
|
||||
|
||||
Copyright:
|
||||
(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.
|
||||
*/
|
||||
|
||||
Ext.namespace('Deluge');
|
||||
Ext.namespace('Deluge.data');
|
||||
|
||||
/**
|
||||
* Common sort functions that can be used for data Stores.
|
||||
|
@ -39,11 +39,11 @@ Ext.namespace('Deluge');
|
|||
* @author Damien Churchill <damoxc@gmail.com>
|
||||
* @version 1.3
|
||||
*
|
||||
* @class Deluge.Sorters
|
||||
* @class Deluge.data.SortTypes
|
||||
* @singleton
|
||||
*/
|
||||
Deluge.Sorters = {
|
||||
ipAddress: function(value) {
|
||||
Deluge.data.SortTypes = {
|
||||
asIPAddress: function(value) {
|
||||
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]);
|
||||
}
|
|
@ -325,7 +325,7 @@ class TopLevel(resource.Resource):
|
|||
"js/deluge-all/Deluge.js",
|
||||
"js/deluge-all/Deluge.Formatters.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.OptionsManager.js",
|
||||
"js/deluge-all/Deluge.MultiOptionsManager.js",
|
||||
|
|
Loading…
Reference in New Issue