Skip to content
This repository was archived by the owner on Dec 11, 2017. It is now read-only.

Forcing mask to string#314

Merged
digitalBush merged 1 commit intodigitalBush:masterfrom
allanmfz:patch-1
Jun 19, 2015
Merged

Forcing mask to string#314
digitalBush merged 1 commit intodigitalBush:masterfrom
allanmfz:patch-1

Conversation

@allanmfz
Copy link
Contributor

This code:

$('[data-masked]').each(function() {
$(this).mask($(this).data('masked'));
});

Will give an error, when data-masked="99999" ... the $(this).data returns a number object, not string.

This code:

$('[data-masked]').each(function() {
	$(this).mask($(this).data('masked'));
});

Will give an error, when data-masked="99999" ... the $(this).data returns a number object, not string.
@digitalBush
Copy link
Owner

Good use case, thank you for the contribution!

digitalBush added a commit that referenced this pull request Jun 19, 2015
@digitalBush digitalBush merged commit 9893954 into digitalBush:master Jun 19, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants