mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
fixed the courer._clearScheduled, and renamed bind to $bind
This commit is contained in:
parent
407ada97ea
commit
f447a129bb
2 changed files with 4 additions and 3 deletions
|
@ -248,7 +248,8 @@ define(function (require) {
|
|||
|
||||
// properly clear scheduled fetches
|
||||
Courier.prototype._clearScheduled = function (type) {
|
||||
this._timer[type] = clearTimeout(this._timer[type]);
|
||||
clearTimeout(this._timer[type]);
|
||||
delete this._timer[type];
|
||||
};
|
||||
|
||||
// alert the courior that a doc has been updated
|
||||
|
|
|
@ -89,7 +89,7 @@ define(function (require) {
|
|||
_notify(onChange, vals[key]);
|
||||
}
|
||||
|
||||
function bindToScope($scope, key, opts) {
|
||||
function $bindToScope($scope, key, opts) {
|
||||
$watch(key, function (val) {
|
||||
if (opts && val === void 0) val = opts['default'];
|
||||
$scope[key] = val;
|
||||
|
@ -114,7 +114,7 @@ define(function (require) {
|
|||
this.close = close;
|
||||
this.get = get;
|
||||
this.set = set;
|
||||
this.bind = bindToScope;
|
||||
this.$bind = $bindToScope;
|
||||
this.$watch = $watch;
|
||||
|
||||
/*******
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue