Skip to content

Commit

Permalink
Angular2RC5
Browse files Browse the repository at this point in the history
  • Loading branch information
Caballerog committed Aug 27, 2016
1 parent 9bee0d6 commit e4a3699
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/inline-editor.component.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { Component, forwardRef, Input, OnInit, Output, EventEmitter, ElementRef, ViewChild, Renderer } from '@angular/core';
import { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms';

const noop = () => {
};

export const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any = {
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef(() => InlineEditorComponent),
Expand Down Expand Up @@ -232,7 +229,7 @@ export class InlineEditorComponent implements ControlValueAccessor, OnInit, Inpu

writeValue(value: any) {
if (value) {
this._value = value;
this.value = value;
this.isEmpty = false;
} else {

Expand Down

0 comments on commit e4a3699

Please sign in to comment.