mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 23:48:05 +03:00
Use _.contains()
rather than indexOf()
This commit is contained in:
parent
ce35a1d380
commit
28d48f983e
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user