basicplaceholder
Advanced tools
Comparing version 1.4.2 to 1.4.3
'use strict' | ||
let name = require('./package.json').moduleName, | ||
gulp = require('gulp'), | ||
tasks = require('@electerious/basictasks')(gulp, name) | ||
let name = require('./package.json').moduleName | ||
let gulp = require('gulp') | ||
let tasks = require('@electerious/basictasks')(gulp, name) | ||
@@ -18,4 +18,4 @@ const scripts = tasks.scripts({ | ||
const watch = function() { | ||
gulp.watch('./src/scripts/**/*.js', ['scripts']) | ||
gulp.watch('./src/styles/**/*.scss', ['styles']) | ||
gulp.watch('./src/scripts/**/*.js', [ 'scripts' ]) | ||
gulp.watch('./src/styles/**/*.scss', [ 'styles' ]) | ||
} | ||
@@ -25,3 +25,3 @@ | ||
gulp.task('styles', styles) | ||
gulp.task('default', ['scripts', 'styles']) | ||
gulp.task('watch', ['default'], watch) | ||
gulp.task('default', [ 'scripts', 'styles' ]) | ||
gulp.task('watch', [ 'default' ], watch) |
{ | ||
"name": "basicplaceholder", | ||
"moduleName": "basicPlaceholder", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"authors": [ | ||
@@ -16,2 +16,6 @@ "Tobias Reich <tobias@electerious.com>" | ||
], | ||
"scripts": { | ||
"start": "gulp watch", | ||
"compile": "gulp" | ||
}, | ||
"license": "MIT", | ||
@@ -24,5 +28,5 @@ "homepage": "http://github.com/electerious/basicPlaceholder", | ||
"devDependencies": { | ||
"@electerious/basictasks": "^1.1.1", | ||
"gulp": "^3.9.0" | ||
"@electerious/basictasks": "^1.1.4", | ||
"gulp": "^3.9.1" | ||
} | ||
} |
@@ -1,3 +0,3 @@ | ||
let errorText = null, | ||
warningText = null | ||
let errorText = null | ||
let warningText = null | ||
@@ -54,5 +54,5 @@ export const init = function(inputs = [], opts = {}) { | ||
let input = this, | ||
_isError = isError(input), | ||
_isWarning = isWarning(input) | ||
let input = this | ||
let _isError = isError(input) | ||
let _isWarning = isWarning(input) | ||
@@ -71,9 +71,9 @@ // Remove error placeholder | ||
let text = null, | ||
customText = input.getAttribute('data-basicPlaceholder-text'), | ||
wrapper = input.parentElement, | ||
_isError = isError(input), | ||
_isWarning = isWarning(input), | ||
_isPersistent = isPersistent(input), | ||
html = null | ||
let text = null | ||
let customText = input.getAttribute('data-basicPlaceholder-text') | ||
let wrapper = input.parentElement | ||
let _isError = isError(input) | ||
let _isWarning = isWarning(input) | ||
let _isPersistent = isPersistent(input) | ||
let html = null | ||
@@ -110,5 +110,5 @@ // Do not add a placeholder when ... | ||
let wrapper = input.parentElement, | ||
placeholder = wrapper.querySelector('.basicPlaceholder__placeholder'), | ||
_isPersistent = isPersistent(input) | ||
let wrapper = input.parentElement | ||
let placeholder = wrapper.querySelector('.basicPlaceholder__placeholder') | ||
let _isPersistent = isPersistent(input) | ||
@@ -115,0 +115,0 @@ if (_isPersistent===true) return false |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18497
15