From bacc278a3729f4e6fd6ebb9971d6d47a90e58b36 Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Wed, 4 Apr 2012 12:22:14 -0700 Subject: Presets Controller - Update to not use "_element" property of selection. --- js/controllers/presets-controller.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'js/controllers/presets-controller.js') diff --git a/js/controllers/presets-controller.js b/js/controllers/presets-controller.js index 975f9f7a..4c177189 100644 --- a/js/controllers/presets-controller.js +++ b/js/controllers/presets-controller.js @@ -72,20 +72,19 @@ exports.PresetsController = Montage.create(Component, { selectorBase = stylesController.generateClassName(selectorBase); selection.forEach(function(element) { - var el = element._element, - animationName; + var animationName; if(useTransition) { - this.addTransition(el); + this.addTransition(element); } ///// TODO: remove when we find out what to do with competing animations - animationName = stylesController.getElementStyle(el, '-webkit-animation-name'); + animationName = stylesController.getElementStyle(element, '-webkit-animation-name'); if(animationName) { animationNames.push(animationName); } - el.classList.add(selectorBase); + element.classList.add(selectorBase); }, this); -- cgit v1.2.3