Method: MPTextView#updatePlaceholderDraw

Defined in:
motion-prime/support/mp_text_view.rb

#updatePlaceholderDrawObject



64
65
66
67
68
69
70
# File 'motion-prime/support/mp_text_view.rb', line 64

def updatePlaceholderDraw
  prev = @shouldDrawPlaceholder
  @shouldDrawPlaceholder = placeholder && self.text.blank?
  if prev != @shouldDrawPlaceholder
    self.setNeedsDisplay
  end
end