@dualbox/editor 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/html/editor.html CHANGED
@@ -91,35 +91,6 @@
91
91
 
92
92
  window.editor = new DualboxEditor($('#editor'), {
93
93
  showLoadSaveButtons : true,
94
- /*
95
- search : function(text, cb) {
96
- var matched = [];
97
- var packagesNames = Object.keys(pkgIndex);
98
-
99
- if( packagesNames.length <= 0 ) {
100
- cb("No packages found ! Are you set up correctly?", null);
101
- return;
102
- }
103
-
104
- for(var i=0; i<packagesNames.length; i++) {
105
- var name = packagesNames[i];
106
- var pkg = pkgIndex[name].pkg;
107
-
108
- if( pkg.name.indexOf(text) > 0 ) {
109
- matched.push(pkg);
110
- }
111
- else if( pkg.description.indexOf(text) > 0 ) {
112
- matched.push(pkg);
113
- }
114
- else {
115
- continue;
116
- }
117
- }
118
-
119
- cb(null, matched);
120
- },
121
- */
122
-
123
94
 
124
95
  search : function(text, cb) {
125
96
  var options = {