Commit 0a14de84 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Rename method for better understanding

parent a42b2c38
...@@ -27,9 +27,9 @@ class GitLabCrop ...@@ -27,9 +27,9 @@ class GitLabCrop
# Ensure needed elements are jquery objects # Ensure needed elements are jquery objects
# If selector is provided we will convert them to a jQuery Object # If selector is provided we will convert them to a jQuery Object
@filename = @$(@filename) @filename = @getElement(@filename)
@previewImage = @$(@previewImage) @previewImage = @getElement(@previewImage)
@pickImageEl = @$(@pickImageEl) @pickImageEl = @getElement(@pickImageEl)
# Modal elements usually are outside the @form element # Modal elements usually are outside the @form element
@modalCrop = if _.isString(@modalCrop) then $(@modalCrop) else @modalCrop @modalCrop = if _.isString(@modalCrop) then $(@modalCrop) else @modalCrop
...@@ -40,7 +40,7 @@ class GitLabCrop ...@@ -40,7 +40,7 @@ class GitLabCrop
@bindEvents() @bindEvents()
$: (selector) -> getElement: (selector) ->
$(selector, @form) $(selector, @form)
bindEvents: -> bindEvents: ->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment