A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuematerial/vue-material/commit/95614b6 below:

constructor name support for IE11 · vuematerial/vue-material@95614b6 · GitHub

File tree Expand file treeCollapse file tree 3 files changed

+3

-3

lines changed

Filter options

Expand file treeCollapse file tree 3 files changed

+3

-3

lines changed Original file line number Diff line number Diff line change

@@ -192,7 +192,7 @@

192 192

this.showOptions()

193 193

}

194 194 195 -

if (this.searchTerm.constructor.name.toLowerCase() !== 'inputevent') {

195 +

if (this.searchTerm.constructor.toString().match(/function (\w*)/)[1].toLowerCase() !== 'inputevent') {

196 196

this.$emit('md-changed', this.searchTerm)

197 197

}

198 198

},

Original file line number Diff line number Diff line change

@@ -21,7 +21,7 @@ export default {

21 21

return this.localValue

22 22

},

23 23

set (value) {

24 -

if (value.constructor.name.toLowerCase() !== 'inputevent') {

24 +

if (value.constructor.toString().match(/function (\w*)/)[1].toLowerCase() !== 'inputevent') {

25 25

this.$nextTick(() => {

26 26

this.localValue = value

27 27

})

Original file line number Diff line number Diff line change

@@ -52,7 +52,7 @@

52 52

watch: {

53 53

mdActive (active) {

54 54

const isBoolean = typeof active === 'boolean'

55 -

const isEvent = active.constructor.name.toLowerCase() === 'mouseevent'

55 +

const isEvent = active.constructor.toString().match(/function (\w*)/)[1].toLowerCase() === 'mouseevent'

56 56 57 57

if (isBoolean && this.mdCentered && active) {

58 58

this.startRipple({

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4