mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix snapshot (#2544)
This commit is contained in:
@@ -4,6 +4,7 @@ import dependencyObservable = require("ui/core/dependency-observable");
|
||||
import style = require("ui/styling/style");
|
||||
import { TextBaseStyler as TBS } from "ui/text-base/text-base-styler";
|
||||
import {device} from "platform";
|
||||
let styleHandlersInitialized: boolean;
|
||||
|
||||
global.moduleMerge(common, exports);
|
||||
|
||||
@@ -15,6 +16,10 @@ export class Button extends common.Button {
|
||||
super();
|
||||
|
||||
this._isPressed = false;
|
||||
if(!styleHandlersInitialized) {
|
||||
styleHandlersInitialized = true;
|
||||
ButtonStyler.registerHandlers();
|
||||
}
|
||||
}
|
||||
|
||||
get android(): android.widget.Button {
|
||||
@@ -128,6 +133,4 @@ export class ButtonStyler implements style.Styler {
|
||||
TextBaseStyler.getLetterSpacingProperty), "Button");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ButtonStyler.registerHandlers();
|
||||
}
|
||||
Reference in New Issue
Block a user