Skip to content

Commit

Permalink
Fixed a spelling issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Mar 14, 2014
1 parent 40c715f commit fd379de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/ext/angular/src/service/ionicView.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ angular.module('ionic.service.view', ['ui.router', 'ionic.service.platform'])

return null;
};
View.prototype.destory = function() {
View.prototype.destroy = function() {
if(this.scope) {
this.scope.destory && this.scope.destory();
this.scope.destroy && this.scope.destroy();
this.scope = null;
}
};
Expand Down Expand Up @@ -208,8 +208,8 @@ angular.module('ionic.service.view', ['ui.router', 'ionic.service.platform'])
if(forwardsHistory) {
// the forward has a history
for(var x=forwardsHistory.stack.length - 1; x >= forwardView.index; x--) {
// starting from the end destory all forwards in this history from this point
forwardsHistory.stack[x].destory();
// starting from the end destroy all forwards in this history from this point
forwardsHistory.stack[x].destroy();
forwardsHistory.stack.splice(x);
}
}
Expand Down

0 comments on commit fd379de

Please sign in to comment.