Skip to content

Commit

Permalink
Remove legacy and deprecated components
Browse files Browse the repository at this point in the history
  • Loading branch information
nilshoerrmann authored and brendo committed Feb 10, 2014
1 parent 5e059f2 commit 2eb601a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 128 deletions.
109 changes: 0 additions & 109 deletions symphony/assets/css/symphony.legacy.css

This file was deleted.

22 changes: 3 additions & 19 deletions symphony/assets/js/symphony.duplicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,9 @@
apply = $('<fieldset class="apply" />'),
selector = $('<select />'),
constructor = $('<button type="button" class="constructor" />'),
duplicator, list, instances, templates, items, headers, constructor, apply, selector;

// New API (applying the plugin to the frame)
if(object.is('.frame')) {
duplicator = object;
list = duplicator.find('> ol');
}

// Old API (applying the plugin to the list)
// @deprecated to be removed in Symphony 2.4
else {
list = object;
duplicator = object.parent('.frame');

// Check if duplicator frame exists
if(duplicator.length == 0) {
duplicator = $('<div />').attr('class','frame').insertBefore(list).prepend(list);
}
}
duplicator = object,
list = duplicator.find('> ol'),
instances, templates, items, headers, constructor, apply, selector;

// Initialise duplicator components
duplicator.addClass('duplicator').addClass('empty');
Expand Down

0 comments on commit 2eb601a

Please sign in to comment.