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/ffee13d below:

child.data.attrs is undefined (#1762) · vuematerial/vue-material@ffee13d · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+9

-4

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+9

-4

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

@@ -30,13 +30,21 @@

30 30

return (data && componentTypes.includes(data.slot)) || isValidChild(componentOptions)

31 31

}

32 32 33 +

function generateAttrKeys (attrs) {

34 +

return JSON.stringify({

35 +

'persistent': attrs && attrs['md-persistent'],

36 +

'permanent': attrs && attrs['md-permanent']

37 +

})

38 +

}

39 + 33 40

function buildSlots (children, context, functionalContext, options, createElement) {

34 41

let slots = []

35 42 36 43

let hasDrawer = false

37 44 38 45

if (children) {

39 46

children.forEach(child => {

47 +

/* eslint-enable */

40 48

const data = child.data

41 49

const componentOptions = child.componentOptions

42 50

@@ -53,10 +61,7 @@

53 61 54 62

hasDrawer = true

55 63

child.data.slot += `-${isRight ? 'right' : 'left'}`

56 -

child.key = JSON.stringify({

57 -

'persistent': child.data.attrs['md-persistent'],

58 -

'permanent': child.data.attrs['md-permanent']

59 -

})

64 +

child.key = generateAttrKeys(data.attrs)

60 65 61 66

createRightDrawer(isRight)

62 67

}

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