aboutsummaryrefslogtreecommitdiff
path: root/js/components/hintable.reel
diff options
context:
space:
mode:
authorJonathan Duran2012-05-31 08:54:48 -0700
committerJonathan Duran2012-05-31 08:54:48 -0700
commitf297093b5bfa62c9832829751a12f0e556bb5cc0 (patch)
tree6e04cdf142cb1b36e2197970c9dc2141017a2be7 /js/components/hintable.reel
parent9253e2ce98d748edd8c3929f113a597923960387 (diff)
parentd49c909cff7f0c5e5d0b127ad84a2fefc6677dc6 (diff)
downloadninja-f297093b5bfa62c9832829751a12f0e556bb5cc0.tar.gz
Merge branch 'refs/heads/NINJAmaster' into TimelineUber
Conflicts: js/panels/Timeline/Layer.reel/Layer.js js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js js/panels/properties.reel/properties.js Signed-off-by: Jonathan Duran <jduran@motorola.com>
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