fixed the courer._clearScheduled, and renamed bind to $bind

This commit is contained in:
Spencer Alger 2014-02-24 10:22:12 -07:00
parent 407ada97ea
commit f447a129bb
2 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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;
/*******