Merge pull request #655 from jbristowe/master

Fixed typo
This commit is contained in:
John Bristowe
2015-09-01 23:05:03 +10:00
5 changed files with 5 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ export function onGetConnectionType(args: observable.EventData) {
export function onStartMonitoring(args: observable.EventData) {
onGetConnectionType(null);
connectivity.starMonitoring(onConnectionTypeChanged);
connectivity.startMonitoring(onConnectionTypeChanged);
}
export function onStopMonitoring(args: observable.EventData) {

View File

@@ -30,7 +30,7 @@ export var test_DummyTestForSnippetOnly1 = function () {
// <snippet module="connectivity" title="connectivity">
// ### Monitoring connection type.
// ``` JavaScript
connectivity.starMonitoring(function onConnectionTypeChanged(newConnectionType: number) {
connectivity.startMonitoring(function onConnectionTypeChanged(newConnectionType: number) {
switch (newConnectionType) {
case connectivity.connectionType.none:
////console.log("Connection type changed to none.");

View File

@@ -36,7 +36,7 @@ export function getConnectionType(): number {
}
}
export function starMonitoring(connectionTypeChangedCallback: (newConnectionType: number) => void): void {
export function startMonitoring(connectionTypeChangedCallback: (newConnectionType: number) => void): void {
var onReceiveCallback = function onReceiveCallback(context: android.content.Context, intent: android.content.Intent) {
var newConnectionType = getConnectionType();
connectionTypeChangedCallback(newConnectionType);

View File

@@ -33,7 +33,7 @@ declare module "connectivity" {
* Starts monitoring the connection type.
* @param connectionChangedCallback A function that will be called when the connection type changes.
*/
export function starMonitoring(connectionTypeChangedCallback: (newConnectionType: number) => void): void;
export function startMonitoring(connectionTypeChangedCallback: (newConnectionType: number) => void): void;
/**
* Stops monitoring the connection type.

View File

@@ -68,7 +68,7 @@ var _reachabilityCallbackFunctionRef = new interop.FunctionReference(_reachabili
var _monitorReachabilityRef: any;
var _connectionTypeChangedCallback: (newConnectionType: number) => void;
export function starMonitoring(connectionTypeChangedCallback: (newConnectionType: number) => void): void {
export function startMonitoring(connectionTypeChangedCallback: (newConnectionType: number) => void): void {
if (!_monitorReachabilityRef) {
_monitorReachabilityRef = _createReachability();
_connectionTypeChangedCallback = connectionTypeChangedCallback;