Created
May 8, 2013 03:54
-
-
Save sime/5538066 to your computer and use it in GitHub Desktop.
Attempting to $.extend Foundation.libs.tooltips,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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