Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(tests): phantomjs does not support Function.bind()
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBurleson committed Jul 11, 2015
1 parent a116ed6 commit 523ff09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/util/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ angular.module('material.core')

if (!this.nextTick.timeout) {
this.nextTick.timeout = true;
$timeout(function () {
$timeout(angular.bind(this, function () {
//-- grab a copy of the current queue
var queue = this.nextTick.queue;
//-- reset the queue just in case any callbacks use nextTick
Expand All @@ -397,7 +397,7 @@ angular.module('material.core')
this.nextTick.timeout = false;
//-- process the existing queue
queue.forEach(function (callback) { callback(); });
}.bind(this));
}));
}
}
};
Expand Down

0 comments on commit 523ff09

Please sign in to comment.