]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
updates dropdown to match change to regex in tooltip, 23fe3c5
authorChris Oyler <chris@zurb.com>
Tue, 19 Jan 2016 18:20:43 +0000 (10:20 -0800)
committerChris Oyler <chris@zurb.com>
Tue, 19 Jan 2016 18:20:43 +0000 (10:20 -0800)
js/foundation.dropdown.js

index 5434c555b335342149e12b904ae0154c55aec73d..b87c8cc432c2e7fbc3e6384218ddf20b91d0c3af 100644 (file)
    * @returns {String} position - string value of a position class.
    */
   Dropdown.prototype.getPositionClass = function(){
-    var position = this.$element[0].className.match(/(top|left|right)/g);
+    var position = this.$element[0].className.match(/\b(top|left|right)\b/g);
         position = position ? position[0] : '';
     return position;
   };