From 3eb52904355a5c01603f1269e8b0d34a40a4cdef Mon Sep 17 00:00:00 2001 From: U Date: Sun, 3 Apr 2016 15:59:25 +0800 Subject: [PATCH] fix arrivejs --- js/src/bootstrapMaterialDesign.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/src/bootstrapMaterialDesign.js b/js/src/bootstrapMaterialDesign.js index 4caaa042..fa811bef 100644 --- a/js/src/bootstrapMaterialDesign.js +++ b/js/src/bootstrapMaterialDesign.js @@ -79,7 +79,7 @@ const BootstrapMaterialDesign = (($) => { }, text: { // omit inputs we have specialized components to handle - we need to match text, email, etc. The easiest way to do this appears to be just omit the ones we don't want to match and let the rest fall through to this. - selector: [`input[type!='hidden'][type!='checkbox'][type!='radio'][type!='file'][type!='button'][type!='submit'][type!='reset']`] + selector: [`input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset])`] }, textarea: { selector: ['textarea'] @@ -140,8 +140,8 @@ const BootstrapMaterialDesign = (($) => { // add to arrive if present and enabled if (document.arrive && this.config.arrive) { - $document.arrive(selector, (element) => { // eslint-disable-line no-loop-func - $(element)[jqueryFn](componentConfig) + $document.arrive(selector, function(){ // eslint-disable-line no-loop-func + $(this)[jqueryFn](componentConfig) }) } } catch (e) {