Permalink
Browse files

Make use of property cache

  • Loading branch information...
1 parent 54c69f3 commit 90a224841b586fecacb5b335e012f80e07e633ac @basecode basecode committed Mar 19, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/renderer/renderer_controller.js
@@ -73,7 +73,7 @@ function(tools, EventEmitter, URI) {
});
});
- this.renderer.on('canRender', tools.hitch(this, this.postAsync, 'canRender'));
+ this.renderer.on('canRender', hitch(this, this.postAsync, 'canRender'));
runnerContext.init(options);
@@ -299,7 +299,7 @@ function(tools, EventEmitter, URI) {
if (!this._isEnvSenderSetup) {
if (typeof window !== 'undefined') {
- var listener = tools.hitch(this, this._sendEnvData);
+ var listener = hitch(this, this._sendEnvData);
window.addEventListener('resize', listener, false);
window.addEventListener('scroll', listener, false);
}

0 comments on commit 90a2248

Please sign in to comment.