Skip to content

Instantly share code, notes, and snippets.

@sime
Created May 8, 2013 03:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sime/5538066 to your computer and use it in GitHub Desktop.
Save sime/5538066 to your computer and use it in GitHub Desktop.
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