wrapping findBootstrapEnvironment so that it doesn't run before the DOM is ready #2417

This commit is contained in:
Julian Lam
2015-01-06 12:06:30 -05:00
parent 659d0f68cb
commit e42365f7c1

View File

@@ -256,6 +256,7 @@
findBootstrapEnvironment: function() {
//http://stackoverflow.com/questions/14441456/how-to-detect-which-device-view-youre-on-using-twitter-bootstrap-api
$(document).ready(function() {
var envs = ['xs', 'sm', 'md', 'lg'],
$el = $('<div>');
@@ -270,6 +271,7 @@
return env;
}
}
});
},
// get all the url params in a single key/value hash