Browse Source

* upd

master
RubaXa 10 years ago
parent
commit
cdbef16ee4
  1. 1
      Gruntfile.js
  2. 2
      Ply.min.js
  3. 5
      src/Ply.es6
  4. 1
      src/defaults.es6

1
Gruntfile.js

@ -100,6 +100,7 @@ module.exports = function (grunt){
grunt.registerTask('es', ['export', 'es6transpiler']);
grunt.registerTask('build', ['es', 'qunit']);
grunt.registerTask('min', ['uglify']);
grunt.registerTask('dev', ['es', 'watch']);
grunt.registerTask('quick', ['es', 'min']);
grunt.registerTask('default', ['version', 'build', 'min']);
};

2
Ply.min.js vendored

File diff suppressed because one or more lines are too long

5
src/Ply.es6

@ -103,7 +103,7 @@
*/
function _createLayer(contentEl, options) {
return _buildDOM({
css: {
css: _extend({
padding: '20px 20px 40px', // Сницу в два раза больше, так лучше
display: 'inline-block',
position: 'relative',
@ -111,7 +111,7 @@
whiteSpace: 'normal',
verticalAlign: 'middle',
transform: 'translate3d(0, 0, 0)'
},
}, options.wrapper),
children: options.baseHtml ? [{
ply: ':layer',
tag: '.ply-layer',
@ -480,6 +480,7 @@
handle['_' + target] = (evt) => {
var el = evt.target;
do {
if (el.nodeType === 1) {
if (el.getAttribute(_plyAttr) === target) {

1
src/defaults.es6

@ -9,6 +9,7 @@ module.exports = {
baseHtml: true,
layer: {}, // css
wrapper: {}, // css
overlay: {
opacity: .6,

Loading…
Cancel
Save