Permalink
Browse files

Remove NaN check so that any united value can be used (like em for ex…

…ample)
  • Loading branch information...
remybach committed Apr 14, 2013
1 parent 489c6a5 commit 4b417f1faba5c7f6e4dc69f85aa877e40ac28cd6
Showing with 4 additions and 12 deletions.
  1. +0 −8 jquery.superLabels.js
  2. +2 −2 jquery.superLabels.min.js
  3. +1 −1 package.json
  4. +1 −1 superLabels.jquery.json
View
@@ -41,14 +41,6 @@
// If this has been run on an empty set of elements, pop out.
if (this.length === 0) { return false; }
- // Remove any NaNs from the positions (if present)
- if (options && options.labelLeft && isNaN(options.labelLeft)) {
- options.labelLeft = Number(options.labelLeft.replace(/\D+/, ''));
- }
- if (options && options.labelTop && isNaN(options.labelTop)) {
- options.labelTop = Number(options.labelTop.replace(/\D+/, ''));
- }
-
// Make a copy of the defaults.
_newDefaults = $.extend({}, defaults);
// If options were passed in, merge them with the defaults.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,6 +1,6 @@
{
"name": "jQuery.superLabels",
- "version": "2.0.3",
+ "version": "2.0.4",
"description": "Give your forms a helping of awesome!",
"homepage": "http://remy.bach.me.uk/superlabels_demo/",
"bugs": {
View
@@ -1 +1 @@
-{"name":"superLabels","version":"2.0.3","title":"jQuery Super Labels","author":{"name":"Rémy Bach","url":"http://remy.bach.me.uk"},"licenses":[{"type":"MIT","url":"http://remybach.mit-license.org/"}],"dependencies":{"jquery":">=1.5"},"description":"Give your forms a helping of awesome!","keywords":["form","forms","label","labels","usability"],"homepage":"https://github.com/remybach/jQuery.superLabels","docs":"https://github.com/remybach/jQuery.superLabels","demo":"http://remy.bach.me.uk/superlabels_demo/","bugs":"https://github.com/remybach/jQuery.superLabels/issues"}
+{"name":"superLabels","version":"2.0.4","title":"jQuery Super Labels","author":{"name":"Rémy Bach","url":"http://remy.bach.me.uk"},"licenses":[{"type":"MIT","url":"http://remybach.mit-license.org/"}],"dependencies":{"jquery":">=1.5"},"description":"Give your forms a helping of awesome!","keywords":["form","forms","label","labels","usability"],"homepage":"https://github.com/remybach/jQuery.superLabels","docs":"https://github.com/remybach/jQuery.superLabels","demo":"http://remy.bach.me.uk/superlabels_demo/","bugs":"https://github.com/remybach/jQuery.superLabels/issues"}

0 comments on commit 4b417f1

Please sign in to comment.