I'm having trouble with jslint, for example when I set the option 'white: true' on aptana, I get even more errors about indentation! but on jslint.com I don't get those messages, the option there works.
Just wondering, is this a known bug, or maybe I'm doing something wrong?
I have in the beginning of the file:
/jslint browser: true, vars: true, white: true/
...and 200+ warning messages :p
/jslint browser: true, vars: true, white: true/
should be
/*jslint browser: true, vars: true, white: true */
BTW, if you go to jslint.org and set the options you want, it produces the exact string you'll need.
Related
i am using bootstrap-table-filter-control.min.js to add filter in my bootstrap table. Its working fine in chrome but in IE its throwing error "Invalid State"
can anyone tell me wht could be the problem?
here the gimps of what i am using
Scripts
<script src="~/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script src="~/js/bootstrap.min.js" type="text/javascript"></script>
<script src="~/assets/bootstrap-table/src/bootstrap-table.js"></script>
<script src="~/assets/bootstrap-table/dist/extensions/filter-control/bootstrap-table-filter-control.min.js"></script>
through JS i am binding to bootstrap table
signerTable.bootstrapTable
({
data: data
, filterControl: true
, columns: [
{
title: 'Plant',
field: 'OrgCode',
align: 'left',
valign: 'top',
halign: 'center',
searchable: true,
sortable: false,
filterControl: 'select'
},`
]
Error Screen Shot
Error Line in bootstrap-table-filter-control.js
Could you include a JSFIDDLE showing your code - makes it much easier for people to assist as we then have a working example of your problem. Here is a good list of starter samples to save you time.
I'm trying to change the indent size for CSS/SCSS to two spaces in Atom Beautify, but it has no effect and the indent remains at four spaces. Even if I set it to two spaces in my .jsbeautifyrc file, it has no effect. Am I missing something?
{
"indent_size": 2,
"indent_char": " ",
"indent_level": 0,
"indent_with_tabs": false,
"preserve_newlines": true,
"max_preserve_newlines": 10,
"jslint_happy": false,
"space_after_anon_function": false,
"brace_style": "collapse-preserve-inline",
"keep_array_indentation": false,
"keep_function_indentation": false,
"space_before_conditional": true,
"break_chained_methods": false,
"eval_code": false,
"unescape_strings": false,
"wrap_line_length": 0
}
atom-beautify uses its own configuration, which can be changed in the following two ways in Atom:
In the Settings GUI
Ctrl + , to open Settings (or File > Settings)
Select Packages
Find atom-beautify and click on Settings
Find CSS and click to expand the Settings for CSS
Enter your desired indent size where it says Indent Size:
Repeat previous 2 steps for SCSS
In config.cson
File > Config... to open config.cson
Add the following
"atom-beautify":
css:
indent_size: 2
scss:
indent_size: 2
I recently updated to brackets 1.8 and now I can't disable the auto close brackets. I've got this in my Braskets.json file
"closeTags":
{
"dontCloseTags": [],
"indentTags": [],
"whenOpening": false,
"whenClosing": false
}
Any ideas?
Just realised what the issue is. I needed this line
"closeBrackets": false,
My jplayer is not working on ie7/8/10, first it gives me syntax error to Jplayer.swf i soved this problem,now IE shows the message like "To play the media you will need to either update your browser to a recent version or update your Flash plugin. " I am not getting what is happining, can anyone help me?
here is my code:-
new jPlayerPlaylist({
jPlayer: "#jquery_jplayer_1",
cssSelectorAncestor: "#jp_container_1"
},
[
{
title:"credit",
mp3: "<?php echo home_url('/audio/'.$_COOKIE['gita_language'].'/credit.mp3'); ?>"
} ]
, {
playlistOptions: {
loopOnPrevious: true,
autoPlay: true
},
loop: true,
/*swfPath: "js",*/
swfPath: "http://www.jplayer.org/2.0.0/js/Jplayer.swf",
supplied: "mp3, ogg, wav",
wmode: "window",
smoothPlayBar: true,
keyEnabled: true,
solution: "html,flash"
});
To play the media you will need to either update your browser to a
recent version or update your Flash plugin.
Did you try updating the Flash plugin in your browser? And unless you have a specific need to support them you would do well to forget about making it work in IE6 or 7, and possibly even IE8.
try to update new flash player plugin that will make the magic to work
I have a problem using mixins included in Bourbon.
When this mixin uses the "compact" function of Bourbon, it just compile it into the css without using it.
Here is a screenshot of the rendred CSS for a box-shadow :
http://i.stack.imgur.com/YF1JB.png
I use it on a non-static site, with the latest Sass version. I use Codekit to compile.
Thanks for help !
Ok so after diving a bit deeper here is how I fixed it.
This problem is probably being caused because of this commit:
https://github.com/thoughtbot/bourbon/commit/ac07c990c0d0fe16f4c455490c9a9fdff7fe27af
The compact function has been rewritten in Ruby to better integrate with Rails.
Initially I just copy pasted the 'stylesheet' folder from the repo. And thats when I started false sytax.
I fixed the error by reading the instructions :) - the instruction on how to install it in Rails and then it worked.
In your case, idk if they have a codekit implementation but I believe you can fix it by adding the following code:
#function compact($var-1, $var-2: false,
$var-3: false, $var-4: false,
$var-5: false, $var-6: false,
$var-7: false, $var-8: false,
$var-9: false, $var-10: false) {
$full: $var-1;
$vars: $var-2, $var-3, $var-4, $var-5,
$var-6, $var-7, $var-8, $var-9, $var-10;
#each $var in $vars {
#if $var {
$full: $full, $var;
}
}
#return $full;
}
(I got the code from the repo)
in a file name _function.scss inside your addons folder and reference it in _bourbon.scss. And that should fix your problem.