diff options
author | Pushkar Joshi | 2012-05-31 12:20:03 -0700 |
---|---|---|
committer | Pushkar Joshi | 2012-05-31 12:20:03 -0700 |
commit | 4bc52365b1f81a386c3c59fd7c6ad874bb387cb5 (patch) | |
tree | c5b17297aba04bd54a59cf6214d29486e089031b /node_modules/montage/ui/rich-text-editor | |
parent | 75a862d305bc4502e22bc5aa65fa271143b8cf6c (diff) | |
parent | 6042bdc5f2aada4412912fd01602d32c9088dc26 (diff) | |
download | ninja-4bc52365b1f81a386c3c59fd7c6ad874bb387cb5.tar.gz |
Merge branch 'master' into pentool
Diffstat (limited to 'node_modules/montage/ui/rich-text-editor')
-rw-r--r-- | node_modules/montage/ui/rich-text-editor/rich-text-editor.reel/rich-text-editor-base.js | 4 | ||||
-rw-r--r-- | node_modules/montage/ui/rich-text-editor/rich-text-editor.reel/rich-text-editor.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/node_modules/montage/ui/rich-text-editor/rich-text-editor.reel/rich-text-editor-base.js b/node_modules/montage/ui/rich-text-editor/rich-text-editor.reel/rich-text-editor-base.js index 46e45926..71169d00 100644 --- a/node_modules/montage/ui/rich-text-editor/rich-text-editor.reel/rich-text-editor-base.js +++ b/node_modules/montage/ui/rich-text-editor/rich-text-editor.reel/rich-text-editor-base.js | |||
@@ -569,7 +569,7 @@ exports.RichTextEditorBase = Montage.create(Component,/** @lends module:"montage | |||
569 | if (defaultEventManager.registeredEventListenersForEventType_onTarget_("change@textValue", this)) { | 569 | if (defaultEventManager.registeredEventListenersForEventType_onTarget_("change@textValue", this)) { |
570 | prevValue = this._textValue; | 570 | prevValue = this._textValue; |
571 | if (this.textValue !== prevValue) { | 571 | if (this.textValue !== prevValue) { |
572 | this.dispatchEvent(MutableEvent.changeEventForKeyAndValue("textValue" , prevValue).withPlusValue(text.value)); | 572 | this.dispatchEvent(MutableEvent.changeEventForKeyAndValue("textValue" , prevValue).withPlusValue(this.textValue)); |
573 | } | 573 | } |
574 | } | 574 | } |
575 | } else if (this._textValue && !this._dirtyTextValue) { | 575 | } else if (this._textValue && !this._dirtyTextValue) { |
@@ -608,7 +608,7 @@ exports.RichTextEditorBase = Montage.create(Component,/** @lends module:"montage | |||
608 | if (defaultEventManager.registeredEventListenersForEventType_onTarget_("change@textValue", this)) { | 608 | if (defaultEventManager.registeredEventListenersForEventType_onTarget_("change@textValue", this)) { |
609 | prevValue = this._textValue; | 609 | prevValue = this._textValue; |
610 | if (this.textValue !== prevValue) { | 610 | if (this.textValue !== prevValue) { |
611 | this.dispatchEvent(MutableEvent.changeEventForKeyAndValue("textValue" , prevValue).withPlusValue(text.value)); | 611 | this.dispatchEvent(MutableEvent.changeEventForKeyAndValue("textValue" , prevValue).withPlusValue(this.textValue)); |
612 | } | 612 | } |
613 | } | 613 | } |
614 | 614 | ||
diff --git a/node_modules/montage/ui/rich-text-editor/rich-text-editor.reel/rich-text-editor.js b/node_modules/montage/ui/rich-text-editor/rich-text-editor.reel/rich-text-editor.js index a132b0ab..13ba0518 100644 --- a/node_modules/montage/ui/rich-text-editor/rich-text-editor.reel/rich-text-editor.js +++ b/node_modules/montage/ui/rich-text-editor/rich-text-editor.reel/rich-text-editor.js | |||
@@ -318,7 +318,7 @@ exports.RichTextEditor = Montage.create(RichTextEditorBase,/** @lends module:"mo | |||
318 | 318 | ||
319 | if (slotElem) { | 319 | if (slotElem) { |
320 | if (slotElem.parentNode) { | 320 | if (slotElem.parentNode) { |
321 | slotElem.parentNode.removeChild(slotElem) | 321 | slotElem.parentNode.removeChild(slotElem); |
322 | } | 322 | } |
323 | this._activeOverlay = null; | 323 | this._activeOverlay = null; |
324 | slot.content = null; | 324 | slot.content = null; |
@@ -643,7 +643,7 @@ exports.RichTextEditor = Montage.create(RichTextEditorBase,/** @lends module:"mo | |||
643 | value: function() { | 643 | value: function() { |
644 | var thisRef = this, | 644 | var thisRef = this, |
645 | prevValue; | 645 | prevValue; |
646 | updateValues = function() { | 646 | var updateValues = function() { |
647 | clearTimeout(thisRef._forceUpdateValuesTimeout); | 647 | clearTimeout(thisRef._forceUpdateValuesTimeout); |
648 | delete thisRef._forceUpdateValuesTimeout; | 648 | delete thisRef._forceUpdateValuesTimeout; |
649 | clearTimeout(thisRef._updateValuesTimeout); | 649 | clearTimeout(thisRef._updateValuesTimeout); |