summaryrefslogtreecommitdiffstats
path: root/install/ui/src
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2012-11-12 14:06:53 +0100
committerPetr Vobornik <pvoborni@redhat.com>2013-01-18 15:10:36 +0100
commitbe0a120134680c5977f8a8c9e6d359944fa1f2ab (patch)
treef18345ce492e108702b8b298912f77cf0087d5cf /install/ui/src
parentb9ef6ab0c412913234f05f788b3fcd3c3277eb69 (diff)
downloadfreeipa-be0a120134680c5977f8a8c9e6d359944fa1f2ab.tar.gz
freeipa-be0a120134680c5977f8a8c9e6d359944fa1f2ab.tar.xz
freeipa-be0a120134680c5977f8a8c9e6d359944fa1f2ab.zip
Update JavaScript Lint configuration file
Update is needed because various files were moved to different directories. https://fedorahosted.org/freeipa/ticket/112
Diffstat (limited to 'install/ui/src')
-rw-r--r--install/ui/src/freeipa/freeipa.profile.js5
-rw-r--r--install/ui/src/freeipa/ipa.js1
-rw-r--r--install/ui/src/libs/browser.js2
3 files changed, 6 insertions, 2 deletions
diff --git a/install/ui/src/freeipa/freeipa.profile.js b/install/ui/src/freeipa/freeipa.profile.js
index be81f18fc..7a20134a5 100644
--- a/install/ui/src/freeipa/freeipa.profile.js
+++ b/install/ui/src/freeipa/freeipa.profile.js
@@ -4,12 +4,15 @@
var profile = (function(){
+
+ var js_files = /\.js$/;
+
return {
resourceTags: {
// all JavaScript files are AMD modules
amd: function(filename, mid) {
- return /\.js$/.test(filename);
+ return js_files.test(filename);
}
}
};
diff --git a/install/ui/src/freeipa/ipa.js b/install/ui/src/freeipa/ipa.js
index cc62f0897..c646d8c46 100644
--- a/install/ui/src/freeipa/ipa.js
+++ b/install/ui/src/freeipa/ipa.js
@@ -1,4 +1,3 @@
-/*jsl:import jquery.ordered-map.js */
/* Authors:
* Pavel Zuna <pzuna@redhat.com>
* Adam Young <ayoung@redhat.com>
diff --git a/install/ui/src/libs/browser.js b/install/ui/src/libs/browser.js
index 9268d9dc8..8bfb2de16 100644
--- a/install/ui/src/libs/browser.js
+++ b/install/ui/src/libs/browser.js
@@ -41,7 +41,9 @@ if (!Array.prototype.indexOf) {
var n = 0;
if (arguments.length > 0) {
n = Number(arguments[1]);
+ /*jsl:ignore*/
if (n !== n) { // shortcut for verifying if it's NaN
+ /*jsl:end*/
n = 0;
} else if (n !== 0 && n !== Infinity && n !== -Infinity) {
n = (n > 0 || -1) * Math.floor(Math.abs(n));