Improve Binding class (#2038)

Remove options parameter
This commit is contained in:
Hristo Hristov
2016-04-27 16:43:45 +03:00
parent 264fe170a9
commit b2c182fd7a
47 changed files with 325 additions and 654 deletions

View File

@@ -10,10 +10,6 @@ export class HtmlView extends view.View implements definition.HtmlView {
new proxy.PropertyMetadata(false, dependencyObservable.PropertyMetadataSettings.AffectsLayout)
);
constructor(options?: definition.Options) {
super(options);
}
get html(): string {
return this._getValue(HtmlView.htmlProperty);
}

View File

@@ -17,8 +17,6 @@ declare module "ui/html-view" {
*/
public static htmlProperty: dependencyObservable.Property;
constructor(options?: Options);
/**
* Gets the native [android widget](http://developer.android.com/reference/android/widget/TextView.html) that represents the user interface for this component. Valid only when running on Android OS.
*/
@@ -34,14 +32,4 @@ declare module "ui/html-view" {
*/
html: string;
}
/**
* Provides a set of most common options for creating a HtmlView.
*/
export interface Options extends view.Options {
/**
* Gets or sets the html content of a HtmlView.
*/
html?: string;
}
}
}

View File

@@ -1,5 +1,4 @@
import common = require("./html-view-common");
import definition = require("ui/html-view");
import dependencyObservable = require("ui/core/dependency-observable");
import proxy = require("ui/core/proxy");
import * as utils from "utils/utils";
@@ -30,8 +29,8 @@ global.moduleMerge(common, exports);
export class HtmlView extends common.HtmlView {
private _ios: UITextView;
constructor(options?: definition.Options) {
super(options);
constructor() {
super();
this._ios = UITextView.new();
this._ios.scrollEnabled = false;