From f71e8f853605f0eb4deaf16263124aac1aad9ee1 Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Mon, 21 May 2012 12:02:08 -0700 Subject: CSS Panel - Allow ":" to be used in selector field --- js/components/hintable.reel/hintable.js | 46 +++------------------------------ 1 file changed, 3 insertions(+), 43 deletions(-) (limited to 'js/components/hintable.reel') diff --git a/js/components/hintable.reel/hintable.js b/js/components/hintable.reel/hintable.js index 6e3b2aaf..803770db 100644 --- a/js/components/hintable.reel/hintable.js +++ b/js/components/hintable.reel/hintable.js @@ -327,48 +327,8 @@ exports.Hintable = Montage.create(Editable, { revert : [27], backsp : [8] } - } + }, + distinct: true } -}); - -// suggest : { -// value : function(hint) { -// ///// if no hint argument passed, clear suggestions -// if(!hint) { -// this.clearHint(); -// return false; -// } -// -// this._hint = hint; -// -// ///// append span with suggested hint -// if(this.hintElement) { -// this.clearHint(); -// -// ///// Set the hint element's text -// this._getFirstTextNode(this.hintElement).textContent = hint; -// -// ///// if hintElement was removed from the DOM, the object still -// ///// exists, so it needs to be re-appended -// if(this.hintElement.parentNode === null) { -// this._element.appendChild(this.hintElement); -// } -// } else { -// /// Remove the phantom "
" element that is generated when -// /// content editable element is empty -// this._children(this._element, function(item) { -// return item.nodeName === 'BR'; -// }).forEach(function(item) { -// this._element.removeChild(item); -// }, this); -// -// this.hintElement = document.createElement('span'); -// this.hintElement.classList.add(this.suggestClass); -// this.hintElement.appendChild(document.createTextNode(hint)); -// this._element.appendChild(this.hintElement); -// } -// -// this._hint = hint; -// } -// }, \ No newline at end of file +}); \ No newline at end of file -- cgit v1.2.3