Use _.contains() rather than indexOf()

This commit is contained in:
Ben Ogle 2013-09-11 11:05:24 -07:00
parent ce35a1d380
commit 28d48f983e

View File

@ -60,7 +60,7 @@ class Theme
#
# * stylesheetPath: A {String} to a stylesheet
loadStylesheet: (stylesheetPath) ->
@stylesheets.push(stylesheetPath) if @stylesheets.indexOf(stylesheetPath) < 0
@stylesheets.push(stylesheetPath) unless _.contains(@stylesheets, stylesheetPath)
content = window.loadStylesheet(stylesheetPath)
window.applyStylesheet(stylesheetPath, content, 'userTheme')