Skip to content

Instantly share code, notes, and snippets.

@sime sime/callout.js
Created May 8, 2013

Embed
What would you like to do?
Attempting to $.extend Foundation.libs.tooltips,
var callout = {
create : 'overwritten object'
};
$.extend(true, callout, Foundation.libs.tooltips);
if (typeof callout.create == 'function') {
alert('create() is still a function!');
}
if (typeof callout.create == 'string') {
alert('create() is overwritten as a string!');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.