Skip to content

Commit

Permalink
Merge pull request #996 from rvanbaalen/patch-1
Browse files Browse the repository at this point in the history
Update ionicPlatform.js
  • Loading branch information
adamdbradley committed Apr 1, 2014
2 parents 6f8c0de + 13b3825 commit adede32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/ext/angular/src/service/ionicPlatform.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,14 @@ angular.module('ionic.service.platform', [])
* @description
* Trigger a callback once the device is ready,
* or immediately if the device is already ready.
* @param {function} callback The function to call.
* @param {function=} callback The function to call.
*/
ready: function(cb) {
var q = $q.defer();

ionic.Platform.ready(function(){
q.resolve();
cb();
cb && cb();
});

return q.promise;
Expand Down

0 comments on commit adede32

Please sign in to comment.