mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-19 10:49:43 +00:00
27 lines
543 B
JavaScript
27 lines
543 B
JavaScript
|
/*\
|
||
|
title: $:/core/modules/filters/deserializers.js
|
||
|
type: application/javascript
|
||
|
module-type: filteroperator
|
||
|
|
||
|
Filter operator for returning the names of the deserializers in this wiki
|
||
|
|
||
|
\*/
|
||
|
(function(){
|
||
|
|
||
|
/*jslint node: true, browser: true */
|
||
|
/*global $tw: false */
|
||
|
"use strict";
|
||
|
|
||
|
/*
|
||
|
Export our filter function
|
||
|
*/
|
||
|
exports.deserializers = function(source,operator,options) {
|
||
|
var results = [];
|
||
|
$tw.utils.each($tw.Wiki.tiddlerDeserializerModules,function(deserializer,type) {
|
||
|
results.push(type);
|
||
|
});
|
||
|
results.sort();
|
||
|
return results;
|
||
|
};
|
||
|
|
||
|
})();
|