Skip to content

Instantly share code, notes, and snippets.

@broox9
Last active December 14, 2015 22:59
Show Gist options
  • Select an option

  • Save broox9/5162487 to your computer and use it in GitHub Desktop.

Select an option

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
/*
* 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