       @parent.trigger 'deleteCategory', this
 
   name: ->
-    @node.find(".js-cat-name").val()
+    @node.find('.js-cat-name').val()
 
   addProperty: (property) ->
     @properties.push new ProductPropertyEditor(this, @property_rows, property)

    @node.sortable
      handle: '.category-handle',
      placeholder: 'ui-sortable-placeholder',
      items: ".js-category-node"
      start: (event, ui) ->
        ui.placeholder.height(ui.item.height())
        ui.placeholder.html "<div style='height:#{ui.item.height()}; width:#{ui.item.width()};'></div>"

  constructor: (@parent, @category) ->
    @properties = []

    categoryEditorTemplate = _.template($('#category-editor-template').html())
    @node = $("<div class='js-category-node'>").html(categoryEditorTemplate(category_editor: this))
    @parent.append @node

