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

Rename method for better understanding

parent a42b2c38
......@@ -27,9 +27,9 @@ class GitLabCrop
# Ensure needed elements are jquery objects
# If selector is provided we will convert them to a jQuery Object
@filename = @$(@filename)
@previewImage = @$(@previewImage)
@pickImageEl = @$(@pickImageEl)
@filename = @getElement(@filename)
@previewImage = @getElement(@previewImage)
@pickImageEl = @getElement(@pickImageEl)
# Modal elements usually are outside the @form element
@modalCrop = if _.isString(@modalCrop) then $(@modalCrop) else @modalCrop
......@@ -40,7 +40,7 @@ class GitLabCrop
@bindEvents()
$: (selector) ->
getElement: (selector) ->
$(selector, @form)
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