Skip to content

Instantly share code, notes, and snippets.

@mxriverlynn
Last active August 22, 2016 14:22
Show Gist options
  • Save mxriverlynn/607a247258da95bd6c79c290a6e2cdaf to your computer and use it in GitHub Desktop.
Save mxriverlynn/607a247258da95bd6c79c290a6e2cdaf to your computer and use it in GitHub Desktop.
undefined is not a function
if (VENDOR && _.isFunction(VENDOR.f)) {
VENDOR.f();
}
var awesomeThings = {
doStuff: function(){
var that = this;
$(".thing").click(function(){
this.doAwesomeStuff();
});
}
// ...
}
@yusk90
Copy link

yusk90 commented Aug 22, 2016

This should be that on line 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment