vanilla-slab
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -60,3 +60,4 @@ !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.VanillaSlab=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ | ||
raf: options.raf || true, | ||
postTweak: options.postTweak === false ? false : true | ||
postTweak: options.postTweak === false ? false : true, | ||
delayCheck: options.postCheck || false | ||
}; | ||
@@ -130,5 +131,7 @@ | ||
setTimeout(function() { | ||
checkWidth(elm, settings, starting_font_size, parent_width); | ||
}, 300); | ||
if (settings.postCheck) { | ||
setTimeout(function() { | ||
checkWidth(elm, settings, starting_font_size, parent_width); | ||
}, 300); | ||
} | ||
@@ -135,0 +138,0 @@ elm.style.display = 'block'; |
@@ -6,7 +6,8 @@ // Main initialization | ||
main_slab.init({ | ||
selector: '.js-smain-slab', | ||
selector: '.js-main-slab', | ||
maxWordsPerLine: 1, | ||
minWordsPerLine: 1, | ||
postTweak: true, | ||
buffer: 1.0 | ||
buffer: 1.0, | ||
delayCheck: true | ||
}); | ||
@@ -13,0 +14,0 @@ |
@@ -60,3 +60,4 @@ !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.VanillaSlab=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ | ||
raf: options.raf || true, | ||
postTweak: options.postTweak === false ? false : true | ||
postTweak: options.postTweak === false ? false : true, | ||
delayCheck: options.postCheck || false | ||
}; | ||
@@ -130,5 +131,7 @@ | ||
setTimeout(function() { | ||
checkWidth(elm, settings, starting_font_size, parent_width); | ||
}, 300); | ||
if (settings.postCheck) { | ||
setTimeout(function() { | ||
checkWidth(elm, settings, starting_font_size, parent_width); | ||
}, 300); | ||
} | ||
@@ -135,0 +138,0 @@ elm.style.display = 'block'; |
@@ -22,3 +22,4 @@ /**** | ||
raf: options.raf || true, | ||
postTweak: options.postTweak === false ? false : true | ||
postTweak: options.postTweak === false ? false : true, | ||
delayCheck: options.postCheck || false | ||
}; | ||
@@ -25,0 +26,0 @@ |
@@ -29,5 +29,7 @@ function setFont(elm, settings, starting_font_size) { | ||
setTimeout(function() { | ||
checkWidth(elm, settings, starting_font_size, parent_width); | ||
}, 300); | ||
if (settings.postCheck) { | ||
setTimeout(function() { | ||
checkWidth(elm, settings, starting_font_size, parent_width); | ||
}, 300); | ||
} | ||
@@ -34,0 +36,0 @@ elm.style.display = 'block'; |
{ | ||
"name": "vanilla-slab", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "A heavily modified port of the excellent jQuery Slabtext plugin, without jQuery.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
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
252601
1516