Created
June 18, 2014 02:53
-
-
Save samarpanda/9dac392d37bf3baa6270 to your computer and use it in GitHub Desktop.
_fbq.push.toSting()
This file contains 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
/* | |
* _fbq used for facebook custom audience | |
* Array.push overriden | |
*/ | |
function (t) { | |
if (Object.prototype.toString.call(t) !== '[object Array]') return false; | |
var u = t.shift(); | |
if (!u) return false; | |
var v = f[u]; | |
if (typeof v !== 'function') return false; | |
if (a._fbds) { | |
var w = a._fbds.pixelId; | |
if (h.test(w)) { | |
g.push(w); | |
delete a._fbds.pixelId; | |
} | |
} | |
return v.apply(f, t); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment