97eab80ac6e5511b34f4cdf5ddd9092c577ce5ae
[platform/framework/web/crosswalk-tizen.git] /
1 // this file is imcomplete since jquery style guide support is still not
2 // finished (see #19)
3
4 var i = 0;
5
6 if (condition) { doSomething(); } else if (otherCondition) {
7   somethingElse();
8 // comment
9 } else {
10 // comment
11 otherThing();
12 }
13
14 this.element
15   .add()
16   .set({
17     // line comment
18     // one more
19     prop: "value"
20   });
21
22 while (x) {
23   y();
24 }
25
26 for (i = 0; i < length; i++) {
27   y();
28 }
29 for ( ; i < length; i++ ) {
30   y();
31 }
32
33 function x() {
34   return something &&
35     !somethingElse;
36 }
37
38 ul.outerWidth( Math.max(
39   // Firefox wraps long text (possibly a rounding bug)
40   // so we add 1px to avoid the wrapping (#7513)
41   ul.width( "" ).outerWidth() + 1,
42   this.element.outerWidth()
43 ) );
44
45 function x() {
46   return this.indeterminate ? false :
47     Math.min( this.options.max, Math.max( this.min, newValue ) );
48 }
49
50 if ( event.target !== that.element[ 0 ] &&
51     event.target !== menuElement &&
52     !$.contains( menuElement, event.target ) ) {
53   close();
54 }
55
56 contents = this.headers.next()
57   .removeClass("ui-helper-reset ui-widget-content ui-corner-bottom " +
58     "ui-accordion-content ui-accordion-content-active ui-state-disabled")
59   .css("display", "")
60   .removeAttr("role");
61
62 this.buttonElement
63   .addClass( baseClasses )
64   .bind( "click" + this.eventNamespace, function( event ) {
65     if ( options.disabled ) {
66       event.preventDefault();
67     }
68   });
69
70 try {
71   x();
72 } catch(error) {
73   console.log(error);
74 }
75
76 x({ a: 1 });
77 y({
78   a: 1
79 });
80 $.each( { div: "#list1", ul: "#navigation", dl: "#accordion-dl" } );
81
82 (function($) {
83   x;
84 }(jQuery));
85
86 var x = {foo:{bar: true}};
87 var y = {a: b, c: d, e:{ f: g}};
88 x = {
89   props: {
90     // comment
91     x: 1
92   }
93 };
94 x={
95   b:function b() {
96     a();
97   },
98   a:b
99 };