Skip to content

Commit a88eca5

Browse files
committed
ver(release): hotfix for 0.6.5
1 parent d52b6d9 commit a88eca5

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

dist/angular-strap.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* AngularStrap - Twitter Bootstrap directives for AngularJS
3-
* @version v0.6.5 - 2013-02-10
3+
* @version v0.6.5 - 2013-02-11
44
* @link http://mgcrea.github.com/angular-strap
55
* @author Olivier Louvignes
66
* @license MIT License, http://www.opensource.org/licenses/MIT
@@ -261,6 +261,8 @@ angular.module('$strap.directives')
261261
.directive('bsButtonSelect', ['$parse', '$timeout', function($parse, $timeout) {
262262
'use strict';
263263

264+
var isTouch = 'ontouchstart' in window;
265+
264266
return {
265267
restrict: 'A',
266268
require: '?ngModel',
@@ -281,7 +283,7 @@ angular.module('$strap.directives')
281283

282284
// Click handling
283285
var values, value, index, newValue;
284-
element.on('click', function onClick() {
286+
element.on(isTouch ? 'touchstart.bsButtonSelect.data-api' : 'click.bsButtonSelect.data-api', function(ev) {
285287
values = getter(scope);
286288
value = ctrl ? scope.$eval(attr.ngModel) : element.text();
287289
index = values.indexOf(value);

0 commit comments

Comments
 (0)