diff options
author | hwc487 | 2012-05-31 17:11:08 -0700 |
---|---|---|
committer | hwc487 | 2012-05-31 17:11:08 -0700 |
commit | 1c445cf5d905f79937998cf2f1115594ea8c1074 (patch) | |
tree | 35271ad7ffec86fde9102af3dd954fa3a2974582 /js/components/hintable.reel | |
parent | 335ce503996e3ccbd2909086328d0a31fbd03370 (diff) | |
parent | 6042bdc5f2aada4412912fd01602d32c9088dc26 (diff) | |
download | ninja-1c445cf5d905f79937998cf2f1115594ea8c1074.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into Textures
Conflicts:
js/io/system/ninjalibrary.json
Diffstat (limited to 'js/components/hintable.reel')
-rw-r--r-- | js/components/hintable.reel/hintable.js | 46 |
1 files changed, 3 insertions, 43 deletions
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, { | |||
327 | revert : [27], | 327 | revert : [27], |
328 | backsp : [8] | 328 | backsp : [8] |
329 | } | 329 | } |
330 | } | 330 | }, |
331 | distinct: true | ||
331 | } | 332 | } |
332 | 333 | ||
333 | }); | 334 | }); \ No newline at end of file |
334 | |||
335 | // suggest : { | ||
336 | // value : function(hint) { | ||
337 | // ///// if no hint argument passed, clear suggestions | ||
338 | // if(!hint) { | ||
339 | // this.clearHint(); | ||
340 | // return false; | ||
341 | // } | ||
342 | // | ||
343 | // this._hint = hint; | ||
344 | // | ||
345 | // ///// append span with suggested hint | ||
346 | // if(this.hintElement) { | ||
347 | // this.clearHint(); | ||
348 | // | ||
349 | // ///// Set the hint element's text | ||
350 | // this._getFirstTextNode(this.hintElement).textContent = hint; | ||
351 | // | ||
352 | // ///// if hintElement was removed from the DOM, the object still | ||
353 | // ///// exists, so it needs to be re-appended | ||
354 | // if(this.hintElement.parentNode === null) { | ||
355 | // this._element.appendChild(this.hintElement); | ||
356 | // } | ||
357 | // } else { | ||
358 | // /// Remove the phantom "<BR>" element that is generated when | ||
359 | // /// content editable element is empty | ||
360 | // this._children(this._element, function(item) { | ||
361 | // return item.nodeName === 'BR'; | ||
362 | // }).forEach(function(item) { | ||
363 | // this._element.removeChild(item); | ||
364 | // }, this); | ||
365 | // | ||
366 | // this.hintElement = document.createElement('span'); | ||
367 | // this.hintElement.classList.add(this.suggestClass); | ||
368 | // this.hintElement.appendChild(document.createTextNode(hint)); | ||
369 | // this._element.appendChild(this.hintElement); | ||
370 | // } | ||
371 | // | ||
372 | // this._hint = hint; | ||
373 | // } | ||
374 | // }, \ No newline at end of file | ||