Move this to Horde.
authorJan Schneider <jan@horde.org>
Wed, 23 Dec 2009 14:15:06 +0000 (15:15 +0100)
committerJan Schneider <jan@horde.org>
Wed, 23 Dec 2009 14:15:06 +0000 (15:15 +0100)
imp/js/DimpCore.js

index 4a180a4..a463f1e 100644 (file)
@@ -527,16 +527,3 @@ var DimpCore = {
     }
 
 };
-
-/* More efficient String.unfilterJSON() function. */
-Object.extend(String.prototype, {
-    unfilterJSON: function(filter) {
-        if (filter) {
-            return this.replace(filter, '$1');
-        } else if (this.startsWith('/*-secure-') &&
-                   this.endsWith('*/')) {
-            return this.slice(10, -2);
-        }
-        return this;
-    }
-});