diff --git a/lib/model/recordset/RecordSet.js b/lib/model/recordset/RecordSet.js index d1f3ba1..2737499 100644 --- a/lib/model/recordset/RecordSet.js +++ b/lib/model/recordset/RecordSet.js @@ -169,7 +169,7 @@ var RecordSet = (function (_super) { //TODO:have this reload data instead of clearing it //set the timeout to _timeToLive. This will clear the recordset at the interval //calling this accessor multiple times will reset the timeout preserving the records - this._intervalId = setTimeout(function () { _this.clear; }, val); + this._intervalId = window.setTimeout(function () { _this.clear; }, val); } this.notify(val, "timeToLive"); }, diff --git a/lib/model/recordset/RecordSet.js.map b/lib/model/recordset/RecordSet.js.map index 116d893..e054222 100644 --- a/lib/model/recordset/RecordSet.js.map +++ b/lib/model/recordset/RecordSet.js.map @@ -1 +1 @@ -{"version":3,"file":"RecordSet.js","sourceRoot":"","sources":["../../../src/model/recordset/RecordSet.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;GAEG;AACH,iDAA8C;AAC9C,gEAA6D;AAC7D,8DAA2D;AAG3D,+CAA4C;AAC5C,sDAAmD;AACnD,iEAA8D;AAG9D;IAA+B,6BAAO;IA+JlC,mBAAY,UAAqB,EAAE,YAAqB;QAA5C,2BAAA,EAAA,gBAAqB;QAAE,6BAAA,EAAA,mBAAqB;QAAxD,YACI,iBAAO,SAcV;QA3JM,mBAAa,GAAU,EAAE,CAAC;QA+I7B,yBAAW,CAAC,KAAK,CAAC,iCAAe,EAAE,SAAS,EAAE,KAAI,CAAC,CAAC;QAEpD,KAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,KAAI,CAAC,QAAQ,GAAG,CAAE,YAAY,CAAE,GAAG,IAAI,YAAY,EAAW,GAAG,IAAI,qBAAS,EAAE,CAAC;QACjF,KAAI,CAAC,SAAS,GAAG,CAAE,YAAY,CAAE,GAAG,IAAI,YAAY,EAAW,GAAG,IAAI,qBAAS,EAAE,CAAC;QAElF,EAAE,CAAA,CAAC,CAAC,KAAK,CAAC,KAAI,CAAC,WAAW,CAAC,CAAC,CAAA,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EAAE,CAAC;YACvC,CAAC;QACL,CAAC;QACD,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACzB,IAAI,CAAC,QAAQ,CAAC,IAAI,+BAAc,CAAC,+BAAc,CAAC,cAAc,CAAC,CAAC,CAAC;IACrE,CAAC;IAEM,2CAAuB,GAA9B,UAA+B,KAAqB;QAChD,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;IAEM,2BAAO,GAAd;QACI,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;IAC9B,CAAC;IA1Oa,qBAAW,GAAU,YAAY,CAAC;IAClC,iBAAO,GAAU,SAAS,CAAC;IAC3B,kBAAQ,GAAU,UAAU,CAAC;IA0O/C,gBAAC;CAAA,AA9OD,CAA+B,iBAAO,GA8OrC;AA9OY,8BAAS"} \ No newline at end of file diff --git a/src/model/recordset/RecordSet.ts b/src/model/recordset/RecordSet.ts index 71f7b00..7405c64 100644 --- a/src/model/recordset/RecordSet.ts +++ b/src/model/recordset/RecordSet.ts @@ -149,7 +149,7 @@ export class RecordSet extends Subject implements IEventDispatcher{ //TODO:have this reload data instead of clearing it //set the timeout to _timeToLive. This will clear the recordset at the interval //calling this accessor multiple times will reset the timeout preserving the records - this._intervalId = setTimeout(() =>{ this.clear }, val); + this._intervalId = window.setTimeout(() =>{ this.clear }, val); } this.notify(val, "timeToLive"); }