@@ -22,7 +22,7 @@ describe 'VideoControl', ->
'''
it 'bind the playback button', ->
- control = new VideoControl(element: $('.video-controls'))
+ control = new VideoControl(el: $('.video-controls'))
expect($('.video_control')).toHandleWith 'click', control.togglePlayback
describe 'when on a touch based device', ->
@@ -30,7 +30,7 @@ describe 'VideoControl', ->
spyOn(window, 'onTouchBasedDevice').andReturn true
it 'does not add the play class to video control', ->
- new VideoControl(element: $('.video-controls'))
+ new VideoControl(el: $('.video-controls'))
expect($('.video_control')).not.toHaveClass 'play'
expect($('.video_control')).not.toHaveHtml 'Play'
@@ -40,13 +40,13 @@ describe 'VideoControl', ->
spyOn(window, 'onTouchBasedDevice').andReturn false
it 'add the play class to video control', ->
- new VideoControl(element: $('.video-controls'))
+ new VideoControl(el: $('.video-controls'))
expect($('.video_control')).toHaveClass 'play'
expect($('.video_control')).toHaveHtml 'Play'
describe 'play', ->
beforeEach ->
- @control = new VideoControl(element: $('.video-controls'))
+ @control = new VideoControl(el: $('.video-controls'))
@control.play()
it 'switch playback button to play state', ->
@@ -56,7 +56,7 @@ describe 'VideoControl', ->
describe 'pause', ->
beforeEach ->
- @control = new VideoControl(element: $('.video-controls'))
+ @control = new VideoControl(el: $('.video-controls'))
@control.pause()
it 'switch playback button to pause state', ->
@@ -66,7 +66,7 @@ describe 'VideoControl', ->
describe 'togglePlayback', ->
beforeEach ->
- @control = new VideoControl(element: $('.video-controls'))
+ @control = new VideoControl(el: $('.video-controls'))
describe 'when the control does not have play or pause class', ->
beforeEach ->
diff --git a/lms/static/coffee/spec/modules/video/video_player_spec.coffee b/lms/static/coffee/spec/modules/video/video_player_spec.coffee
index 7c86b2c9ca..aa5d1f3187 100644
--- a/lms/static/coffee/spec/modules/video/video_player_spec.coffee
+++ b/lms/static/coffee/spec/modules/video/video_player_spec.coffee
@@ -21,19 +21,19 @@ describe 'VideoPlayer', ->
expect(@player.currentTime).toEqual 0
it 'set the element', ->
- expect(@player.element).toBe '#video_example'
+ expect(@player.el).toBe '#video_example'
it 'create video control', ->
- expect(window.VideoControl).toHaveBeenCalledWith element: $('.video-controls', @player.element)
+ expect(window.VideoControl).toHaveBeenCalledWith el: $('.video-controls', @player.el)
it 'create video caption', ->
- expect(window.VideoCaption).toHaveBeenCalledWith element: @player.element, youtubeId: 'def456', currentSpeed: '1.0'
+ expect(window.VideoCaption).toHaveBeenCalledWith el: @player.el, youtubeId: 'def456', currentSpeed: '1.0'
it 'create video speed control', ->
- expect(window.VideoSpeedControl).toHaveBeenCalledWith element: $('.secondary-controls', @player.element), speeds: ['0.75', '1.0'], currentSpeed: '1.0'
+ expect(window.VideoSpeedControl).toHaveBeenCalledWith el: $('.secondary-controls', @player.el), speeds: ['0.75', '1.0'], currentSpeed: '1.0'
it 'create video progress slider', ->
- expect(window.VideoProgressSlider).toHaveBeenCalledWith element: $('.slider', @player.element)
+ expect(window.VideoProgressSlider).toHaveBeenCalledWith el: $('.slider', @player.el)
it 'create Youtube player', ->
expect(YT.Player).toHaveBeenCalledWith 'example'
@@ -83,7 +83,7 @@ describe 'VideoPlayer', ->
expect($('.hide-subtitles')).toHaveData 'qtip'
it 'create video volume control', ->
- expect(window.VideoVolumeControl).toHaveBeenCalledWith element: $('.secondary-controls', @player.element)
+ expect(window.VideoVolumeControl).toHaveBeenCalledWith el: $('.secondary-controls', @player.el)
describe 'when on a touch based device', ->
beforeEach ->
@@ -339,34 +339,34 @@ describe 'VideoPlayer', ->
describe 'when the video player is not full screen', ->
beforeEach ->
- @player.element.removeClass 'fullscreen'
+ @player.el.removeClass 'fullscreen'
@player.toggleFullScreen(jQuery.Event("click"))
it 'replace the full screen button tooltip', ->
expect($('.add-fullscreen')).toHaveAttr 'title', 'Exit fill browser'
it 'add a new exit from fullscreen button', ->
- expect(@player.element).toContain 'a.exit'
+ expect(@player.el).toContain 'a.exit'
it 'add the fullscreen class', ->
- expect(@player.element).toHaveClass 'fullscreen'
+ expect(@player.el).toHaveClass 'fullscreen'
it 'tell VideoCaption to resize', ->
expect(@player.caption.resize).toHaveBeenCalled()
describe 'when the video player already full screen', ->
beforeEach ->
- @player.element.addClass 'fullscreen'
+ @player.el.addClass 'fullscreen'
@player.toggleFullScreen(jQuery.Event("click"))
it 'replace the full screen button tooltip', ->
expect($('.add-fullscreen')).toHaveAttr 'title', 'Fill browser'
it 'remove exit full screen button', ->
- expect(@player.element).not.toContain 'a.exit'
+ expect(@player.el).not.toContain 'a.exit'
it 'remove the fullscreen class', ->
- expect(@player.element).not.toHaveClass 'fullscreen'
+ expect(@player.el).not.toHaveClass 'fullscreen'
it 'tell VideoCaption to resize', ->
expect(@player.caption.resize).toHaveBeenCalled()
diff --git a/lms/static/coffee/spec/modules/video/video_progress_slider_spec.coffee b/lms/static/coffee/spec/modules/video/video_progress_slider_spec.coffee
index d4dd41e41d..611911c3af 100644
--- a/lms/static/coffee/spec/modules/video/video_progress_slider_spec.coffee
+++ b/lms/static/coffee/spec/modules/video/video_progress_slider_spec.coffee
@@ -7,7 +7,7 @@ describe 'VideoProgressSlider', ->
beforeEach ->
spyOn($.fn, 'slider').andCallThrough()
spyOn(window, 'onTouchBasedDevice').andReturn false
- @slider = new VideoProgressSlider element: $('.slider')
+ @slider = new VideoProgressSlider el: $('.slider')
it 'build the slider', ->
expect(@slider.slider).toBe '.slider'
@@ -35,7 +35,7 @@ describe 'VideoProgressSlider', ->
beforeEach ->
spyOn($.fn, 'slider').andCallThrough()
spyOn(window, 'onTouchBasedDevice').andReturn true
- @slider = new VideoProgressSlider element: $('.slider')
+ @slider = new VideoProgressSlider el: $('.slider')
it 'does not build the slider', ->
expect(@slider.slider).toBeUndefined
@@ -43,7 +43,7 @@ describe 'VideoProgressSlider', ->
describe 'play', ->
beforeEach ->
- @slider = new VideoProgressSlider element: $('.slider')
+ @slider = new VideoProgressSlider el: $('.slider')
spyOn($.fn, 'slider').andCallThrough()
describe 'when the slider was already built', ->
@@ -82,7 +82,7 @@ describe 'VideoProgressSlider', ->
describe 'updatePlayTime', ->
beforeEach ->
- @slider = new VideoProgressSlider element: $('.slider')
+ @slider = new VideoProgressSlider el: $('.slider')
spyOn($.fn, 'slider').andCallThrough()
describe 'when frozen', ->
@@ -106,7 +106,7 @@ describe 'VideoProgressSlider', ->
describe 'onSlide', ->
beforeEach ->
- @slider = new VideoProgressSlider element: $('.slider')
+ @slider = new VideoProgressSlider el: $('.slider')
@time = null
$(@slider).bind 'seek', (event, time) => @time = time
spyOnEvent @slider, 'seek'
@@ -124,7 +124,7 @@ describe 'VideoProgressSlider', ->
describe 'onChange', ->
beforeEach ->
- @slider = new VideoProgressSlider element: $('.slider')
+ @slider = new VideoProgressSlider el: $('.slider')
@slider.onChange {}, value: 20
it 'update the tooltip', ->
@@ -132,7 +132,7 @@ describe 'VideoProgressSlider', ->
describe 'onStop', ->
beforeEach ->
- @slider = new VideoProgressSlider element: $('.slider')
+ @slider = new VideoProgressSlider el: $('.slider')
@time = null
$(@slider).bind 'seek', (event, time) => @time = time
spyOnEvent @slider, 'seek'
@@ -153,7 +153,7 @@ describe 'VideoProgressSlider', ->
describe 'updateTooltip', ->
beforeEach ->
- @slider = new VideoProgressSlider element: $('.slider')
+ @slider = new VideoProgressSlider el: $('.slider')
@slider.updateTooltip 90
it 'set the tooltip value', ->
diff --git a/lms/static/coffee/spec/modules/video/video_speed_control_spec.coffee b/lms/static/coffee/spec/modules/video/video_speed_control_spec.coffee
index deced6f948..3fcf8eeec2 100644
--- a/lms/static/coffee/spec/modules/video/video_speed_control_spec.coffee
+++ b/lms/static/coffee/spec/modules/video/video_speed_control_spec.coffee
@@ -6,7 +6,7 @@ describe 'VideoSpeedControl', ->
describe 'constructor', ->
describe 'always', ->
beforeEach ->
- @speedControl = new VideoSpeedControl element: $('.secondary-controls'), speeds: @video.speeds, currentSpeed: '1.0'
+ @speedControl = new VideoSpeedControl el: $('.secondary-controls'), speeds: @video.speeds, currentSpeed: '1.0'
it 'add the video speed control to player', ->
expect($('.secondary-controls').html()).toContain '''
@@ -26,7 +26,7 @@ describe 'VideoSpeedControl', ->
beforeEach ->
spyOn(window, 'onTouchBasedDevice').andReturn true
$('.speeds').removeClass 'open'
- @speedControl = new VideoSpeedControl element: $('.secondary-controls'), speeds: @video.speeds, currentSpeed: '1.0'
+ @speedControl = new VideoSpeedControl el: $('.secondary-controls'), speeds: @video.speeds, currentSpeed: '1.0'
it 'open the speed toggle on click', ->
$('.speeds').click()
@@ -38,7 +38,7 @@ describe 'VideoSpeedControl', ->
beforeEach ->
spyOn(window, 'onTouchBasedDevice').andReturn false
$('.speeds').removeClass 'open'
- @speedControl = new VideoSpeedControl element: $('.secondary-controls'), speeds: @video.speeds, currentSpeed: '1.0'
+ @speedControl = new VideoSpeedControl el: $('.secondary-controls'), speeds: @video.speeds, currentSpeed: '1.0'
it 'open the speed toggle on hover', ->
$('.speeds').mouseenter()
@@ -56,7 +56,7 @@ describe 'VideoSpeedControl', ->
describe 'changeVideoSpeed', ->
beforeEach ->
- @speedControl = new VideoSpeedControl element: $('.secondary-controls'), speeds: @video.speeds, currentSpeed: '1.0'
+ @speedControl = new VideoSpeedControl el: $('.secondary-controls'), speeds: @video.speeds, currentSpeed: '1.0'
@video.setSpeed '1.0'
describe 'when new speed is the same', ->
@@ -80,7 +80,7 @@ describe 'VideoSpeedControl', ->
describe 'onSpeedChange', ->
beforeEach ->
- @speedControl = new VideoSpeedControl element: $('.secondary-controls'), speeds: @video.speeds, currentSpeed: '1.0'
+ @speedControl = new VideoSpeedControl el: $('.secondary-controls'), speeds: @video.speeds, currentSpeed: '1.0'
$('li[data-speed="1.0"] a').addClass 'active'
@speedControl.setSpeed '0.75'
diff --git a/lms/static/coffee/spec/modules/video/video_volume_control_spec.coffee b/lms/static/coffee/spec/modules/video/video_volume_control_spec.coffee
index 7ef9c02780..a2b14afa55 100644
--- a/lms/static/coffee/spec/modules/video/video_volume_control_spec.coffee
+++ b/lms/static/coffee/spec/modules/video/video_volume_control_spec.coffee
@@ -6,7 +6,7 @@ describe 'VideoVolumeControl', ->
describe 'constructor', ->
beforeEach ->
spyOn($.fn, 'slider')
- @volumeControl = new VideoVolumeControl element: $('.secondary-controls')
+ @volumeControl = new VideoVolumeControl el: $('.secondary-controls')
it 'initialize currentVolume to 100', ->
expect(@volumeControl.currentVolume).toEqual 100
@@ -44,7 +44,7 @@ describe 'VideoVolumeControl', ->
beforeEach ->
spyOnEvent @volumeControl, 'volumeChange'
@newVolume = undefined
- @volumeControl = new VideoVolumeControl element: $('.secondary-controls')
+ @volumeControl = new VideoVolumeControl el: $('.secondary-controls')
$(@volumeControl).bind 'volumeChange', (event, volume) => @newVolume = volume
describe 'when the new volume is more than 0', ->
@@ -70,7 +70,7 @@ describe 'VideoVolumeControl', ->
describe 'toggleMute', ->
beforeEach ->
@newVolume = undefined
- @volumeControl = new VideoVolumeControl element: $('.secondary-controls')
+ @volumeControl = new VideoVolumeControl el: $('.secondary-controls')
$(@volumeControl).bind 'volumeChange', (event, volume) => @newVolume = volume
describe 'when the current volume is more than 0', ->
diff --git a/lms/static/coffee/spec/modules/video_spec.coffee b/lms/static/coffee/spec/modules/video_spec.coffee
index 12fac66a5b..6498cdfa76 100644
--- a/lms/static/coffee/spec/modules/video_spec.coffee
+++ b/lms/static/coffee/spec/modules/video_spec.coffee
@@ -21,7 +21,7 @@ describe 'Video', ->
expect(window.player).toBeNull()
it 'set the elements', ->
- expect(@video.element).toBe '#video_example'
+ expect(@video.el).toBe '#video_example'
it 'parse the videos', ->
expect(@video.videos).toEqual
diff --git a/lms/static/coffee/src/_subview.coffee b/lms/static/coffee/src/_subview.coffee
index bddf91a895..2e14289843 100644
--- a/lms/static/coffee/src/_subview.coffee
+++ b/lms/static/coffee/src/_subview.coffee
@@ -7,7 +7,7 @@ class @Subview
@bind()
$: (selector) ->
- $(selector, @element)
+ $(selector, @el)
initialize: ->
render: ->
diff --git a/lms/static/coffee/src/main.coffee b/lms/static/coffee/src/main.coffee
index 7fe23689c5..b8047df2a3 100644
--- a/lms/static/coffee/src/main.coffee
+++ b/lms/static/coffee/src/main.coffee
@@ -24,8 +24,8 @@ $ ->
# Preserved for backward compatibility
window.submit_circuit = (circuit_id) ->
- $("input.schematic").each (index, element) ->
- element.schematic.update_value()
+ $("input.schematic").each (index, el) ->
+ el.schematic.update_value()
schematic_value $("#schematic_#{circuit_id}").attr("value")
$.postWithPrefix "/save_circuit/#{circuit_id}", schematic: schematic_value, (data) ->
diff --git a/lms/static/coffee/src/modules/problem.coffee b/lms/static/coffee/src/modules/problem.coffee
index 85186a2903..aa86237254 100644
--- a/lms/static/coffee/src/modules/problem.coffee
+++ b/lms/static/coffee/src/modules/problem.coffee
@@ -1,10 +1,10 @@
class @Problem
constructor: (@id, @element_id, url) ->
- @element = $("##{element_id}")
+ @el = $("##{element_id}")
@render()
$: (selector) ->
- $(selector, @element)
+ $(selector, @el)
bind: =>
MathJax.Hub.Queue ["Typeset", MathJax.Hub]
@@ -18,16 +18,16 @@ class @Problem
updateProgress: (response) =>
if response.progress_changed
- @element.attr progress: response.progress_status
- @element.trigger('progressChanged')
+ @el.attr progress: response.progress_status
+ @el.trigger('progressChanged')
render: (content) ->
if content
- @element.html(content)
+ @el.html(content)
@bind()
else
$.postWithPrefix "/modx/#{@id}/problem_get", (response) =>
- @element.html(response.html)
+ @el.html(response.html)
@bind()
check: =>
@@ -47,7 +47,7 @@ class @Problem
@updateProgress response
show: =>
- if !@element.hasClass 'showed'
+ if !@el.hasClass 'showed'
Logger.log 'problem_show', problem: @id
$.postWithPrefix "/modx/#{@id}/problem_show", (response) =>
answers = response.answers
@@ -59,12 +59,12 @@ class @Problem
@$("#answer_#{key}, #solution_#{key}").html(value)
MathJax.Hub.Queue ["Typeset", MathJax.Hub]
@$('.show').val 'Hide Answer'
- @element.addClass 'showed'
+ @el.addClass 'showed'
@updateProgress response
else
@$('[id^=answer_], [id^=solution_]').text ''
@$('[correct_answer]').attr correct_answer: null
- @element.removeClass 'showed'
+ @el.removeClass 'showed'
@$('.show').val 'Show Answer'
save: =>
diff --git a/lms/static/coffee/src/modules/sequence.coffee b/lms/static/coffee/src/modules/sequence.coffee
index 2c979f0853..6d8a513a32 100644
--- a/lms/static/coffee/src/modules/sequence.coffee
+++ b/lms/static/coffee/src/modules/sequence.coffee
@@ -1,13 +1,13 @@
class @Sequence
constructor: (@id, @element_id, @elements, @tag, position) ->
- @element = $("#sequence_#{@element_id}")
+ @el = $("#sequence_#{@element_id}")
@buildNavigation()
@initProgress()
@bind()
@render position
$: (selector) ->
- $(selector, @element)
+ $(selector, @el)
bind: ->
@$('#sequence-list a').click @goto
@@ -57,7 +57,7 @@ class @Sequence
when 'none' then element.addClass('progress-none')
when 'in_progress' then element.addClass('progress-some')
when 'done' then element.addClass('progress-done')
-
+
buildNavigation: ->
$.each @elements, (index, item) =>
link = $('
').attr class: "seq_#{item.type}_inactive", 'data-element': index + 1
@@ -65,10 +65,10 @@ class @Sequence
# TODO (vshnayder): add item.progress_detail either to the title or somewhere else.
# Make sure it gets updated after ajax calls.
# implementation note: will need to figure out how to handle combining detail
- # statuses of multiple modules in js.
+ # statuses of multiple modules in js.
list_item = $('').append(link.append(title))
@setProgress item.progress_status, link
-
+
@$('#sequence-list').append list_item
toggleArrows: =>
@@ -89,7 +89,7 @@ class @Sequence
if @position != undefined
@mark_visited @position
$.postWithPrefix "/modx/#{@id}/goto_position", position: new_position
-
+
@mark_active new_position
@$('#seq_content').html @elements[new_position - 1].content
@@ -97,7 +97,7 @@ class @Sequence
@position = new_position
@toggleArrows()
@hookUpProgressEvent()
- @element.trigger 'contentChanged'
+ @el.trigger 'contentChanged'
goto: (event) =>
event.preventDefault()
diff --git a/lms/static/coffee/src/modules/tab.coffee b/lms/static/coffee/src/modules/tab.coffee
index de000b0a96..dfbb450862 100644
--- a/lms/static/coffee/src/modules/tab.coffee
+++ b/lms/static/coffee/src/modules/tab.coffee
@@ -1,23 +1,23 @@
class @Tab
constructor: (@id, @items) ->
- @element = $("#tab_#{id}")
+ @el = $("#tab_#{id}")
@render()
$: (selector) ->
- $(selector, @element)
+ $(selector, @el)
render: ->
$.each @items, (index, item) =>
tab = $('').attr(href: "##{@tabId(index)}").html(item.title)
@$('.navigation').append($('').append(tab))
- @element.append($('').attr(id: @tabId(index)))
- @element.tabs
+ @el.append($('').attr(id: @tabId(index)))
+ @el.tabs
show: @onShow
onShow: (element, ui) =>
@$('section.ui-tabs-hide').html('')
@$("##{@tabId(ui.index)}").html(@items[ui.index]['content'])
- @element.trigger 'contentChanged'
+ @el.trigger 'contentChanged'
tabId: (index) ->
"tab-#{@id}-#{index}"
diff --git a/lms/static/coffee/src/modules/video.coffee b/lms/static/coffee/src/modules/video.coffee
index 048bf679b8..8192f4c312 100644
--- a/lms/static/coffee/src/modules/video.coffee
+++ b/lms/static/coffee/src/modules/video.coffee
@@ -1,7 +1,7 @@
class @Video
constructor: (@id, videos) ->
window.player = null
- @element = $("#video_#{@id}")
+ @el = $("#video_#{@id}")
@parseVideos videos
@fetchMetadata()
@parseSpeed()
diff --git a/lms/static/coffee/src/modules/video/video_caption.coffee b/lms/static/coffee/src/modules/video/video_caption.coffee
index 87a6f8f890..e310eb4223 100644
--- a/lms/static/coffee/src/modules/video/video_caption.coffee
+++ b/lms/static/coffee/src/modules/video/video_caption.coffee
@@ -118,16 +118,16 @@ class @VideoCaption extends Subview
toggle: (event) =>
event.preventDefault()
- if @element.hasClass('closed')
+ if @el.hasClass('closed')
@$('.hide-subtitles').attr('title', 'Turn off captions')
- @element.removeClass('closed')
+ @el.removeClass('closed')
@scrollCaption()
else
@$('.hide-subtitles').attr('title', 'Turn on captions')
- @element.addClass('closed')
+ @el.addClass('closed')
captionHeight: ->
- if @element.hasClass('fullscreen')
+ if @el.hasClass('fullscreen')
$(window).height() - @$('.video-controls').height()
else
@$('.video-wrapper').height()
diff --git a/lms/static/coffee/src/modules/video/video_control.coffee b/lms/static/coffee/src/modules/video/video_control.coffee
index dba18b5883..5053f1dcb1 100644
--- a/lms/static/coffee/src/modules/video/video_control.coffee
+++ b/lms/static/coffee/src/modules/video/video_control.coffee
@@ -3,7 +3,7 @@ class @VideoControl extends Subview
@$('.video_control').click @togglePlayback
render: ->
- @element.append """
+ @el.append """
diff --git a/lms/static/coffee/src/modules/video/video_player.coffee b/lms/static/coffee/src/modules/video/video_player.coffee
index 2934eff191..24cb5fbc51 100644
--- a/lms/static/coffee/src/modules/video/video_player.coffee
+++ b/lms/static/coffee/src/modules/video/video_player.coffee
@@ -4,7 +4,7 @@ class @VideoPlayer extends Subview
YT.PlayerState.UNSTARTED = -1
@currentTime = 0
- @element = $("#video_#{@video.id}")
+ @el = $("#video_#{@video.id}")
bind: ->
$(@control).bind('play', @play)
@@ -20,16 +20,16 @@ class @VideoPlayer extends Subview
@addToolTip() unless onTouchBasedDevice()
bindExitFullScreen: (event) =>
- if @element.hasClass('fullscreen') && event.keyCode == 27
+ if @el.hasClass('fullscreen') && event.keyCode == 27
@toggleFullScreen(event)
render: ->
- @control = new VideoControl element: @$('.video-controls')
- @caption = new VideoCaption element: @element, youtubeId: @video.youtubeId('1.0'), currentSpeed: @currentSpeed()
+ @control = new VideoControl el: @$('.video-controls')
+ @caption = new VideoCaption el: @el, youtubeId: @video.youtubeId('1.0'), currentSpeed: @currentSpeed()
unless onTouchBasedDevice()
- @volumeControl = new VideoVolumeControl element: @$('.secondary-controls')
- @speedControl = new VideoSpeedControl element: @$('.secondary-controls'), speeds: @video.speeds, currentSpeed: @currentSpeed()
- @progressSlider = new VideoProgressSlider element: @$('.slider')
+ @volumeControl = new VideoVolumeControl el: @$('.secondary-controls')
+ @speedControl = new VideoSpeedControl el: @$('.secondary-controls'), speeds: @video.speeds, currentSpeed: @currentSpeed()
+ @progressSlider = new VideoProgressSlider el: @$('.slider')
@player = new YT.Player @video.id,
playerVars:
controls: 0
@@ -125,12 +125,12 @@ class @VideoPlayer extends Subview
toggleFullScreen: (event) =>
event.preventDefault()
- if @element.hasClass('fullscreen')
+ if @el.hasClass('fullscreen')
@$('.exit').remove()
@$('.add-fullscreen').attr('title', 'Fill browser')
- @element.removeClass('fullscreen')
+ @el.removeClass('fullscreen')
else
- @element.append('Exit').addClass('fullscreen')
+ @el.append('Exit').addClass('fullscreen')
@$('.add-fullscreen').attr('title', 'Exit fill browser')
@$('.exit').click @toggleFullScreen
@caption.resize()
diff --git a/lms/static/coffee/src/modules/video/video_progress_slider.coffee b/lms/static/coffee/src/modules/video/video_progress_slider.coffee
index af096f9bb9..ef2f38698b 100644
--- a/lms/static/coffee/src/modules/video/video_progress_slider.coffee
+++ b/lms/static/coffee/src/modules/video/video_progress_slider.coffee
@@ -3,7 +3,7 @@ class @VideoProgressSlider extends Subview
@buildSlider() unless onTouchBasedDevice()
buildSlider: ->
- @slider = @element.slider
+ @slider = @el.slider
range: 'min'
change: @onChange
slide: @onSlide
diff --git a/lms/static/coffee/src/modules/video/video_speed_control.coffee b/lms/static/coffee/src/modules/video/video_speed_control.coffee
index 0aa238d5e4..1d0d8b7d44 100644
--- a/lms/static/coffee/src/modules/video/video_speed_control.coffee
+++ b/lms/static/coffee/src/modules/video/video_speed_control.coffee
@@ -15,7 +15,7 @@ class @VideoSpeedControl extends Subview
$(this).removeClass('open')
render: ->
- @element.prepend """
+ @el.prepend """