aboutsummaryrefslogtreecommitdiff
path: root/js/components/hintable.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/components/hintable.reel')
-rw-r--r--js/components/hintable.reel/hintable.js44
1 files changed, 2 insertions, 42 deletions
diff --git a/js/components/hintable.reel/hintable.js b/js/components/hintable.reel/hintable.js
index 015b3a30..08e87bf0 100644
--- a/js/components/hintable.reel/hintable.js
+++ b/js/components/hintable.reel/hintable.js
@@ -331,48 +331,8 @@ exports.Hintable = Montage.create(Editable, {
331 revert : [27], 331 revert : [27],
332 backsp : [8] 332 backsp : [8]
333 } 333 }
334 } 334 },
335 distinct: true
335 } 336 }
336 337
337}); 338});
338
339// suggest : {
340// value : function(hint) {
341// ///// if no hint argument passed, clear suggestions
342// if(!hint) {
343// this.clearHint();
344// return false;
345// }
346//
347// this._hint = hint;
348//
349// ///// append span with suggested hint
350// if(this.hintElement) {
351// this.clearHint();
352//
353// ///// Set the hint element's text
354// this._getFirstTextNode(this.hintElement).textContent = hint;
355//
356// ///// if hintElement was removed from the DOM, the object still
357// ///// exists, so it needs to be re-appended
358// if(this.hintElement.parentNode === null) {
359// this._element.appendChild(this.hintElement);
360// }
361// } else {
362// /// Remove the phantom "<BR>" element that is generated when
363// /// content editable element is empty
364// this._children(this._element, function(item) {
365// return item.nodeName === 'BR';
366// }).forEach(function(item) {
367// this._element.removeChild(item);
368// }, this);
369//
370// this.hintElement = document.createElement('span');
371// this.hintElement.classList.add(this.suggestClass);
372// this.hintElement.appendChild(document.createTextNode(hint));
373// this._element.appendChild(this.hintElement);
374// }
375//
376// this._hint = hint;
377// }
378// }, \ No newline at end of file