Skip to content

Instantly share code, notes, and snippets.

@cmwelsh
Last active December 19, 2015 00:59
Show Gist options
  • Save cmwelsh/5872509 to your computer and use it in GitHub Desktop.
Save cmwelsh/5872509 to your computer and use it in GitHub Desktop.
define([
'chaplin'
], function(
Chaplin
) {
'use strict';
return Chaplin.View.extend({
bind : function(callback)
{
return _.bind(function()
{
if (this.disposed)
{
return;
}
callback();
}, this);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment