- 
                Notifications
    You must be signed in to change notification settings 
- Fork 6.8k
component: MdInput #161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
component: MdInput #161
Conversation
2b58ce3    to
    de51aed      
    Compare
  
            
          
                src/core/annotations/field-value.ts
              
                Outdated
          
        
      | const defaultValue = target[key]; | ||
|  | ||
| // Use a fallback if Symbol isn't available. | ||
| const localKey = isPresent(Symbol) ? Symbol(key) : `@@$_${key}`; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding special characters such as @@ makes the object into slow object. Better to use __private_symbol_ or something like that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Firefox used to support @@ as a prefix for symbols, thus my usage of this.
62e2d0a    to
    7718712      
    Compare
  
    b132570    to
    19810be      
    Compare
  
            
          
                src/components/input/input.ts
              
                Outdated
          
        
      | export class MdInput implements ControlValueAccessor { | ||
| private _empty: boolean = true; | ||
| private _focused: boolean = false; | ||
| private _onTouched: () => void = () => {}; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does ng2 provide a noop( ) function like ng1 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
a5fa97a    to
    a384a3a      
    Compare
  
    | ## Type | ||
|  | ||
| At the time of writing this README, the `[type]` attribute is copied to the actual `<input>` element in the `<md-input>`. Therefore, the valid types and behavior of those are the ones supported by your browser. | ||
|  | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
except file?
        
          
                src/demo-app/input/input-demo.scss
              
                Outdated
          
        
      | color: md-color($md-primary); | ||
| } | ||
|  | ||
| md-card { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moar .demo- prefix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
| Done w/ second pass | 
420e592    to
    e218b12      
    Compare
  
    | PTAL. | 
35789d3    to
    c87cdb0      
    Compare
  
    | [class.md-accent]="dividerColor == 'accent'"></span> | ||
| </div> | ||
|  | ||
| <div *ngIf="hintLabel != ''" class="md-hint">{{hintLabel}}</div> | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No actions now, but my gut is worried about each input having ~25 bindings. Something to explore later.
(I could just be clinging to Angular 1 performance concerns, though)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted. There should be a greater task of performance checks AND visual checking before full release. In beta maybe.
33eb683    to
    3bc1606      
    Compare
  
    | LGTM | 
| This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. | 
No description provided.