Skip to content

Commit

Permalink
Merge pull request JedWatson#1 from mudetroit/master
Browse files Browse the repository at this point in the history
Remove loadOptions manipulation of input value
  • Loading branch information
millerized committed Aug 8, 2016
2 parents 4ecdd47 + 022f0cc commit 8605a6f
Show file tree
Hide file tree
Showing 8 changed files with 792 additions and 260 deletions.
4 changes: 2 additions & 2 deletions dist/react-select.js
Expand Up @@ -156,8 +156,8 @@ var Async = _react2['default'].createClass({
input = '' + nextState;
}
}
if (this.props.ignoreAccents) input = (0, _utilsStripDiacritics2['default'])(input);
if (this.props.ignoreCase) input = input.toLowerCase();
// if (this.props.ignoreAccents) input = stripDiacritics(input);
// if (this.props.ignoreCase) input = input.toLowerCase();

this._lastInput = input;
if (input.length < this.props.minimumInput) {
Expand Down
4 changes: 2 additions & 2 deletions dist/react-select.min.js

Large diffs are not rendered by default.

101 changes: 73 additions & 28 deletions examples/dist/app.js
Expand Up @@ -1165,22 +1165,26 @@ function shallowEqual(objA, objB) {

module.exports = shallowEqual;
},{}],19:[function(require,module,exports){
/**
* Determine if an object is Buffer
*
* Author: Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* License: MIT
/*!
* Determine if an object is a Buffer
*
* `npm install is-buffer`
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/

// The _isBuffer check is for Safari 5-7 support, because it's missing
// Object.prototype.constructor. Remove this eventually
module.exports = function (obj) {
return !!(obj != null &&
(obj._isBuffer || // For Safari 5-7 (missing Object.prototype.constructor)
(obj.constructor &&
typeof obj.constructor.isBuffer === 'function' &&
obj.constructor.isBuffer(obj))
))
return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)
}

function isBuffer (obj) {
return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
}

// For Node v0.10 support. Remove this eventually.
function isSlowBuffer (obj) {
return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))
}

},{}],20:[function(require,module,exports){
Expand Down Expand Up @@ -1491,7 +1495,6 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
}).call(this,require('_process'))
},{"_process":25}],25:[function(require,module,exports){
// shim for using process in browser

var process = module.exports = {};

// cached from whatever global is present so that test runners that stub it
Expand All @@ -1503,21 +1506,63 @@ var cachedSetTimeout;
var cachedClearTimeout;

(function () {
try {
cachedSetTimeout = setTimeout;
} catch (e) {
cachedSetTimeout = function () {
throw new Error('setTimeout is not defined');
try {
cachedSetTimeout = setTimeout;
} catch (e) {
cachedSetTimeout = function () {
throw new Error('setTimeout is not defined');
}
}
}
try {
cachedClearTimeout = clearTimeout;
} catch (e) {
cachedClearTimeout = function () {
throw new Error('clearTimeout is not defined');
try {
cachedClearTimeout = clearTimeout;
} catch (e) {
cachedClearTimeout = function () {
throw new Error('clearTimeout is not defined');
}
}
}
} ())
function runTimeout(fun) {
if (cachedSetTimeout === setTimeout) {
//normal enviroments in sane situations
return setTimeout(fun, 0);
}
try {
// when when somebody has screwed with setTimeout but no I.E. maddness
return cachedSetTimeout(fun, 0);
} catch(e){
try {
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
return cachedSetTimeout.call(null, fun, 0);
} catch(e){
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
return cachedSetTimeout.call(this, fun, 0);
}
}


}
function runClearTimeout(marker) {
if (cachedClearTimeout === clearTimeout) {
//normal enviroments in sane situations
return clearTimeout(marker);
}
try {
// when when somebody has screwed with setTimeout but no I.E. maddness
return cachedClearTimeout(marker);
} catch (e){
try {
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
return cachedClearTimeout.call(null, marker);
} catch (e){
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
return cachedClearTimeout.call(this, marker);
}
}



}
var queue = [];
var draining = false;
var currentQueue;
Expand All @@ -1542,7 +1587,7 @@ function drainQueue() {
if (draining) {
return;
}
var timeout = cachedSetTimeout.call(null, cleanUpNextTick);
var timeout = runTimeout(cleanUpNextTick);
draining = true;

var len = queue.length;
Expand All @@ -1559,7 +1604,7 @@ function drainQueue() {
}
currentQueue = null;
draining = false;
cachedClearTimeout.call(null, timeout);
runClearTimeout(timeout);
}

process.nextTick = function (fun) {
Expand All @@ -1571,7 +1616,7 @@ process.nextTick = function (fun) {
}
queue.push(new Item(fun, args));
if (queue.length === 1 && !draining) {
cachedSetTimeout.call(null, drainQueue, 0);
runTimeout(drainQueue);
}
};

Expand Down
4 changes: 2 additions & 2 deletions examples/dist/bundle.js
Expand Up @@ -155,8 +155,8 @@ var Async = _react2['default'].createClass({
input = '' + nextState;
}
}
if (this.props.ignoreAccents) input = (0, _utilsStripDiacritics2['default'])(input);
if (this.props.ignoreCase) input = input.toLowerCase();
// if (this.props.ignoreAccents) input = stripDiacritics(input);
// if (this.props.ignoreCase) input = input.toLowerCase();

this._lastInput = input;
if (input.length < this.props.minimumInput) {
Expand Down

0 comments on commit 8605a6f

Please sign in to comment.