diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 00000000..5654a80d --- /dev/null +++ b/.jshintrc @@ -0,0 +1,21 @@ +{ + "curly": true, + "eqeqeq": true, + "immed": true, + "noempty": true, + "noarg": true, + "quotmark": "single", + "undef": true, + "eqnull": true, + "globals": { + "angular": true, + "module": true, + "inject": true, + "jQuery": true, + "beforeEach": true, + "describe": true, + "it": true, + "expect": true, + "spyOn": true + } +} \ No newline at end of file diff --git a/Gruntfile.js b/Gruntfile.js index 6adda8cc..abcef551 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -11,25 +11,7 @@ module.exports = function(grunt) { jshint: { files: ['Gruntfile.js', '<%= files.js %>', '<%= files.spec %>'], options: { - curly: true, - eqeqeq: true, - immed: true, - noempty: true, - noarg: true, - quotmark: 'single', - undef: true, - eqnull: true, - globals: { - angular: true, - module: true, - inject: true, - jQuery: true, - beforeEach: true, - describe: true, - it: true, - expect: true, - spyOn: true - } + jshintrc: '.jshintrc' } }, karma: { diff --git a/README.md b/README.md index c6fb8955..ac0413b2 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ngTagsInput =========== [![Build Status](https://travis-ci.org/mbenford/ngTagsInput.png?branch=master)](https://travis-ci.org/mbenford/ngTagsInput) -Tags input control for AngularJS. Check out the [ngTagsInput website](http://mbenford.github.io/ngTagsInput) for more information. +Tags input directive for AngularJS. Check out the [ngTagsInput website](http://mbenford.github.io/ngTagsInput) for more information. ## Requirements @@ -11,7 +11,7 @@ Tags input control for AngularJS. Check out the [ngTagsInput website](http://mbe ## Installing -Download either `ng-tags-input.min.zip` or `ng-tags-input.zip` from the `build` folder and add its content files to your web application. Make sure the JavaScript script is included after the AngularJS script. +Download either `ng-tags-input.min.zip` or `ng-tags-input.zip` from the [Releases page](https://github.com/mbenford/ngTagsInput/releases) and add its content files to your web application. Make sure the JavaScript file is included after the AngularJS script. ## Usage diff --git a/build/ng-tags-input.min.zip b/build/ng-tags-input.min.zip index be9ad910..4fa75f61 100644 Binary files a/build/ng-tags-input.min.zip and b/build/ng-tags-input.min.zip differ diff --git a/build/ng-tags-input.zip b/build/ng-tags-input.zip index daeaa6d9..3280038b 100644 Binary files a/build/ng-tags-input.zip and b/build/ng-tags-input.zip differ diff --git a/src/ng-tags-input.js b/src/ng-tags-input.js index 971a3283..0e5d7569 100644 --- a/src/ng-tags-input.js +++ b/src/ng-tags-input.js @@ -26,10 +26,6 @@ */ angular.module('tags-input', []).directive('tagsInput', function($interpolate) { - function toBool(value, defaultValue) { - return angular.isDefined(value) ? value === 'true' : defaultValue; - } - function loadOptions(scope, attrs) { function getStr(name, defaultValue) { return attrs[name] ? $interpolate(attrs[name])(scope.$parent) : defaultValue; diff --git a/test/test.html b/test/test.html new file mode 100644 index 00000000..cd0c7e22 --- /dev/null +++ b/test/test.html @@ -0,0 +1,20 @@ + + + + ngTagsInput Test Page + + + + + + + + + + \ No newline at end of file