From 1c6fa9010daf0d0c21de9e20fe6ac4dba1788d90 Mon Sep 17 00:00:00 2001 From: Katie Zhu Date: Mon, 9 Jun 2014 22:18:05 -0700 Subject: MD/CommonJS/Globals #12909 --- js/transition.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'js/transition.js') diff --git a/js/transition.js b/js/transition.js index e8c8f992f..8fcf8ff4b 100644 --- a/js/transition.js +++ b/js/transition.js @@ -7,7 +7,11 @@ * ======================================================================== */ -+function ($) { +(function (o_o) { + typeof define === 'function' && define.amd ? define(['jquery'], o_o) : + typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery) +})(function ($) { + 'use strict'; // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/) @@ -46,4 +50,4 @@ $.support.transition = transitionEnd() }) -}(jQuery); +}); -- cgit v1.2.3