Skip to content

Commit

Permalink
docs(platform): document platform.is() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Weber authored and perrygovier committed Sep 16, 2015
1 parent 861297a commit 356fabc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/utils/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,12 @@
}
},

// Check if the platform is the one detected by cordova
/**
* @ngdoc method
* @name ionic.Platform#is
* @param {string} Platform name.
* @returns {boolean} Whether the platform name provided is detected.
*/
is: function(type) {
type = type.toLowerCase();
// check if it has an array of platforms
Expand Down

0 comments on commit 356fabc

Please sign in to comment.