diff --git a/Gruntfile.js b/Gruntfile.js index 8193aea4..35917c40 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -28,7 +28,8 @@ module.exports = function(grunt) { 'http://localhost:9001/test/test-for-jquery-1.8.3.html', 'http://localhost:9001/test/test-for-jquery-1.9.1.html', 'http://localhost:9001/test/test-for-jquery-2.1.1.html', - // 'http://localhost:9001/test/test-for-zepto.html' + 'http://localhost:9001/test/test-for-jquery-3.0.0.html', + 'http://localhost:9001/test/test-for-zepto.html' ] } } diff --git a/src/jquery.mask.js b/src/jquery.mask.js index 82afa7ad..f937dd30 100755 --- a/src/jquery.mask.js +++ b/src/jquery.mask.js @@ -32,13 +32,13 @@ */ /* jshint laxbreak: true */ -/* global define, jQuery, Zepto */ +/* global define */ 'use strict'; // UMD (Universal Module Definition) patterns for JavaScript modules that work everywhere. // https://github.com/umdjs/umd/blob/master/jqueryPluginCommonjs.js -(function (factory) { +(function (factory, jQuery, Zepto) { if (typeof define === 'function' && define.amd) { define(['jquery'], factory); @@ -519,4 +519,4 @@ $.applyDataMask(); } }, globals.watchInterval); -})); +}, window.jQuery, window.Zepto)); diff --git a/test/test-for-jquery-3.0.0.html b/test/test-for-jquery-3.0.0.html new file mode 100644 index 00000000..283b5cdf --- /dev/null +++ b/test/test-for-jquery-3.0.0.html @@ -0,0 +1,35 @@ + + + jQuery-Mask-Plugin UnitTesting + + + + +

jQuery-Mask-Plugin QUnit Tests

+

+
+

+
    +
    test markup, will be hidden
    + + + + + + + + +
    +
    + + + + + + + + + + + + diff --git a/test/test-for-zepto.html b/test/test-for-zepto.html index 66c83617..abb59323 100644 --- a/test/test-for-zepto.html +++ b/test/test-for-zepto.html @@ -15,16 +15,21 @@

    +
    +
    + + +