Last active
December 14, 2015 22:59
-
-
Save broox9/5162487 to your computer and use it in GitHub Desktop.
/publisher/public/javascripts/apps/create_post/views/settingsFacebook.js -- IE Method Not found and the fix I used
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
| /* | |
| * Not working in IE for some reason | |
| * it's really just using and Underscore method through Backbone | |
| */ | |
| var fbStreams = this.options.streams.models.filter(function(s){ | |
| return (s.get('selected') == true && s.get('type') == "facebook"); | |
| }); | |
| /* | |
| * THIS works in IE | |
| * it's the actual Underscore method | |
| */ | |
| var fbStreams = _.filter(this.options.streams.models, function(s){ | |
| return (s.get('selected') == true && s.get('type') == "facebook"); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment