Fix to complain with the last refactor
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/8254500b Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/8254500b Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/8254500b Branch: refs/heads/feature/mdl Commit: 8254500b4c5695507c1e1bca887009bfccd3786c Parents: 04cc31e Author: Carlos Rovira <carlosrov...@apache.org> Authored: Wed Nov 2 19:27:22 2016 +0100 Committer: Carlos Rovira <carlosrov...@apache.org> Committed: Fri Nov 4 17:43:37 2016 +0100 ---------------------------------------------------------------------- .../src/main/flex/org/apache/flex/mdl/beads/TextPrompt.as | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8254500b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/TextPrompt.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/TextPrompt.as b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/TextPrompt.as index e3142b2..b9d1a6b 100644 --- a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/TextPrompt.as +++ b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/TextPrompt.as @@ -138,11 +138,11 @@ package org.apache.flex.mdl.beads var model:Object = UIBase(_strand).model; if (model.text != null && model.text.length > 0 ) { - if (promptAdded) UIBase(_strand).removeChild(promptField); + if (promptAdded) UIBase(_strand).$displayObjectContainer.removeChild(promptField); promptAdded = false; } else { - if (!promptAdded) UIBase(_strand).addChild(promptField); + if (!promptAdded) UIBase(_strand).$displayObjectContainer.addChild(promptField); promptField.text = prompt; promptAdded = true; }