Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cto
g1
Commits
63a4fc3c
Commit
63a4fc3c
authored
Apr 22, 2019
by
Tejesh
🖖
Browse files
format single quotes to double where appropriate
parent
fcd32161
Pipeline
#83702
passed with stage
in 2 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/template.js
View file @
63a4fc3c
...
@@ -38,7 +38,7 @@ export function template(data, options) {
...
@@ -38,7 +38,7 @@ export function template(data, options) {
options
=
options
||
{}
options
=
options
||
{}
var
self
=
this
var
self
=
this
var
selector
=
var
selector
=
options
.
selector
||
self
.
data
(
'
selector
'
)
||
'
script[type=
'
text
/
html
'
]
'
options
.
selector
||
self
.
data
(
'
selector
'
)
||
'
script[type=
"
text/html
"
]
'
// Pre-create the template rendering function
// Pre-create the template rendering function
// Store this in .data('template.function')
// Store this in .data('template.function')
...
@@ -180,8 +180,8 @@ template.engines['vdom'] = function ($this, target, html) {
...
@@ -180,8 +180,8 @@ template.engines['vdom'] = function ($this, target, html) {
// If no target is specified, use the previous target, if any
// If no target is specified, use the previous target, if any
target
=
target
||
$this
.
data
(
_prev_created
)
target
=
target
||
$this
.
data
(
_prev_created
)
// If a target is specified, wrap the HTML with the target node.
// If a target is specified, wrap the HTML with the target node.
// For example, <div id=
'
target
'
>...</div> will wrap the HTML with
// For example, <div id=
"
target
"
>...</div> will wrap the HTML with
// <div id=
'
target
'
></div>
// <div id=
"
target
"
></div>
var
$target
,
tag_open
,
tag_close
var
$target
,
tag_open
,
tag_close
if
(
target
)
{
if
(
target
)
{
$target
=
$
(
target
)
$target
=
$
(
target
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment