Skip to content

Commit

Permalink
fix(headercolor): solve typo in usage and chore
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Luke committed Nov 24, 2016
1 parent 93696d5 commit bab2971
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/plugins/headercolor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,7 @@ import { Plugin, Cordova } from './plugin';
* ```typescript
* import { HeaderColor } from 'ionic-native';
*
* HeaderColor.tint("#becb29").then(
* (success) => {
* console.log("Your header have a color now")
* },
* (error) => {
* console.log("Your header not have a color now")
* }
* HeaderColor.tint("#becb29");
* ```
*/
@Plugin({
Expand All @@ -30,9 +24,9 @@ export class HeaderColor {
/**
* Set a color to the task header
* @param color {string} The color
* @return {Promise<any>}
* @param {Object} Optional callbacks
*/
@Cordova()
static tint(color: string): Promise<any> { return; }
static tint(color: string, callbacks?: {success?: Function, failure?: Function}): void { }

}

0 comments on commit bab2971

Please sign in to comment.