Commit 63a4fc3c authored by Tejesh's avatar Tejesh 🖖
Browse files

format single quotes to double where appropriate

parent fcd32161
Pipeline #83702 passed with stage
in 2 minutes and 26 seconds
...@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment