summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-03-22 11:45:23 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2016-03-22 11:45:23 -0500
commit0a14de843c9f47482521e3f703956ba2a6c89f1c (patch)
tree756da89ee5f3dd9a10d8aa0d93a9308f3abf0b3c
parenta42b2c388df5154eecefd8eb7d8a68373e794d6e (diff)
downloadgitlab-ce-0a14de843c9f47482521e3f703956ba2a6c89f1c.tar.gz
Rename method for better understanding
-rw-r--r--app/assets/javascripts/gl_crop.js.coffee8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/gl_crop.js.coffee b/app/assets/javascripts/gl_crop.js.coffee
index 137d025ed26..78dfe43d24e 100644
--- a/app/assets/javascripts/gl_crop.js.coffee
+++ b/app/assets/javascripts/gl_crop.js.coffee
@@ -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: ->