epuber 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +5 -3
- data/README.md +3 -11
- data/bin/epuber +2 -3
- data/epuber.gemspec +3 -6
- data/lib/epuber/book/contributor.rb +1 -1
- data/lib/epuber/book/file_request.rb +1 -1
- data/lib/epuber/book/target.rb +1 -2
- data/lib/epuber/book/toc_item.rb +1 -2
- data/lib/epuber/book.rb +1 -2
- data/lib/epuber/checker/text_checker.rb +1 -1
- data/lib/epuber/checker.rb +1 -2
- data/lib/epuber/checker_transformer_base.rb +1 -0
- data/lib/epuber/command/build.rb +1 -2
- data/lib/epuber/command/compile.rb +1 -1
- data/lib/epuber/command/init.rb +1 -2
- data/lib/epuber/command/server.rb +1 -2
- data/lib/epuber/command.rb +1 -1
- data/lib/epuber/compiler/compilation_context.rb +1 -1
- data/lib/epuber/compiler/file_database.rb +3 -5
- data/lib/epuber/compiler/file_finders/abstract.rb +1 -1
- data/lib/epuber/compiler/file_finders/imaginary.rb +1 -2
- data/lib/epuber/compiler/file_finders/normal.rb +1 -1
- data/lib/epuber/compiler/file_resolver.rb +1 -1
- data/lib/epuber/compiler/file_stat.rb +0 -1
- data/lib/epuber/compiler/file_types/abstract_file.rb +1 -2
- data/lib/epuber/compiler/file_types/bade_file.rb +1 -2
- data/lib/epuber/compiler/file_types/coffee_script_file.rb +1 -2
- data/lib/epuber/compiler/file_types/container_xml_file.rb +1 -2
- data/lib/epuber/compiler/file_types/generated_file.rb +1 -2
- data/lib/epuber/compiler/file_types/ibooks_display_options_file.rb +1 -7
- data/lib/epuber/compiler/file_types/image_file.rb +1 -2
- data/lib/epuber/compiler/file_types/mime_type_file.rb +1 -2
- data/lib/epuber/compiler/file_types/nav_file.rb +1 -2
- data/lib/epuber/compiler/file_types/opf_file.rb +1 -2
- data/lib/epuber/compiler/file_types/source_file.rb +1 -2
- data/lib/epuber/compiler/file_types/static_file.rb +1 -2
- data/lib/epuber/compiler/file_types/stylus_file.rb +1 -2
- data/lib/epuber/compiler/file_types/xhtml_file.rb +2 -4
- data/lib/epuber/compiler/generator.rb +1 -1
- data/lib/epuber/compiler/meta_inf_generator.rb +1 -1
- data/lib/epuber/compiler/nav_generator.rb +1 -1
- data/lib/epuber/compiler/opf_generator.rb +1 -1
- data/lib/epuber/compiler/problem.rb +1 -2
- data/lib/epuber/compiler/xhtml_processor.rb +3 -1
- data/lib/epuber/compiler.rb +7 -11
- data/lib/epuber/config.rb +1 -2
- data/lib/epuber/dsl/attribute.rb +1 -1
- data/lib/epuber/dsl/attribute_support.rb +2 -2
- data/lib/epuber/dsl/object.rb +1 -1
- data/lib/epuber/dsl/tree_object.rb +1 -1
- data/lib/epuber/helper.rb +1 -1
- data/lib/epuber/lockfile.rb +1 -1
- data/lib/epuber/plugin.rb +1 -1
- data/lib/epuber/ruby_extensions/match_data.rb +1 -0
- data/lib/epuber/ruby_extensions/thread.rb +1 -0
- data/lib/epuber/server/handlers.rb +1 -1
- data/lib/epuber/server.rb +2 -2
- data/lib/epuber/templates.rb +2 -1
- data/lib/epuber/third_party/bower/bower.json +3 -3
- data/lib/epuber/third_party/bower/bower_components/cookies-js/bower.json +1 -1
- data/lib/epuber/third_party/bower/bower_components/cookies-js/dist/cookies.js +2 -3
- data/lib/epuber/third_party/bower/bower_components/cookies-js/dist/cookies.min.js +6 -6
- data/lib/epuber/third_party/bower/bower_components/jquery/AUTHORS.txt +278 -0
- data/lib/epuber/third_party/bower/bower_components/jquery/{MIT-LICENSE.txt → LICENSE.txt} +17 -2
- data/lib/epuber/third_party/bower/bower_components/jquery/README.md +65 -0
- data/lib/epuber/third_party/bower/bower_components/jquery/bower.json +2 -16
- data/lib/epuber/third_party/bower/bower_components/jquery/dist/jquery.js +2566 -1962
- data/lib/epuber/third_party/bower/bower_components/jquery/dist/jquery.min.js +4 -5
- data/lib/epuber/third_party/bower/bower_components/jquery/dist/jquery.min.map +1 -1
- data/lib/epuber/third_party/bower/bower_components/jquery/external/sizzle/LICENSE.txt +36 -0
- data/lib/epuber/third_party/bower/bower_components/jquery/{src → external}/sizzle/dist/sizzle.js +236 -160
- data/lib/epuber/third_party/bower/bower_components/jquery/external/sizzle/dist/sizzle.min.js +3 -0
- data/lib/epuber/third_party/bower/bower_components/jquery/external/sizzle/dist/sizzle.min.map +1 -0
- data/lib/epuber/third_party/bower/bower_components/jquery/src/ajax/jsonp.js +25 -14
- data/lib/epuber/third_party/bower/bower_components/jquery/src/ajax/load.js +20 -12
- data/lib/epuber/third_party/bower/bower_components/jquery/src/ajax/parseJSON.js +2 -2
- data/lib/epuber/third_party/bower/bower_components/jquery/src/ajax/parseXML.js +4 -5
- data/lib/epuber/third_party/bower/bower_components/jquery/src/ajax/script.js +16 -12
- data/lib/epuber/third_party/bower/bower_components/jquery/src/ajax/var/location.js +3 -0
- data/lib/epuber/third_party/bower/bower_components/jquery/src/ajax/var/nonce.js +2 -2
- data/lib/epuber/third_party/bower/bower_components/jquery/src/ajax/var/rquery.js +3 -3
- data/lib/epuber/third_party/bower/bower_components/jquery/src/ajax/xhr.js +73 -42
- data/lib/epuber/third_party/bower/bower_components/jquery/src/ajax.js +116 -57
- data/lib/epuber/third_party/bower/bower_components/jquery/src/attributes/attr.js +49 -48
- data/lib/epuber/third_party/bower/bower_components/jquery/src/attributes/classes.js +86 -67
- data/lib/epuber/third_party/bower/bower_components/jquery/src/attributes/prop.js +63 -32
- data/lib/epuber/third_party/bower/bower_components/jquery/src/attributes/support.js +6 -5
- data/lib/epuber/third_party/bower/bower_components/jquery/src/attributes/val.js +40 -24
- data/lib/epuber/third_party/bower/bower_components/jquery/src/attributes.js +2 -2
- data/lib/epuber/third_party/bower/bower_components/jquery/src/callbacks.js +114 -87
- data/lib/epuber/third_party/bower/bower_components/jquery/src/core/access.js +11 -6
- data/lib/epuber/third_party/bower/bower_components/jquery/src/core/init.js +27 -16
- data/lib/epuber/third_party/bower/bower_components/jquery/src/core/parseHTML.js +10 -8
- data/lib/epuber/third_party/bower/bower_components/jquery/src/core/ready.js +20 -14
- data/lib/epuber/third_party/bower/bower_components/jquery/src/core/var/rsingleTag.js +4 -3
- data/lib/epuber/third_party/bower/bower_components/jquery/src/core.js +77 -85
- data/lib/epuber/third_party/bower/bower_components/jquery/src/css/addGetHookIf.js +5 -3
- data/lib/epuber/third_party/bower/bower_components/jquery/src/css/adjustCSS.js +65 -0
- data/lib/epuber/third_party/bower/bower_components/jquery/src/css/curCSS.js +20 -17
- data/lib/epuber/third_party/bower/bower_components/jquery/src/css/defaultDisplay.js +16 -14
- data/lib/epuber/third_party/bower/bower_components/jquery/src/css/hiddenVisibleSelectors.js +9 -6
- data/lib/epuber/third_party/bower/bower_components/jquery/src/css/showHide.js +48 -0
- data/lib/epuber/third_party/bower/bower_components/jquery/src/css/support.js +86 -61
- data/lib/epuber/third_party/bower/bower_components/jquery/src/css/var/cssExpand.js +2 -2
- data/lib/epuber/third_party/bower/bower_components/jquery/src/css/var/getStyles.js +8 -5
- data/lib/epuber/third_party/bower/bower_components/jquery/src/css/var/isHidden.js +6 -3
- data/lib/epuber/third_party/bower/bower_components/jquery/src/css/var/rmargin.js +3 -3
- data/lib/epuber/third_party/bower/bower_components/jquery/src/css/var/rnumnonpx.js +2 -2
- data/lib/epuber/third_party/bower/bower_components/jquery/src/css/{swap.js → var/swap.js} +3 -7
- data/lib/epuber/third_party/bower/bower_components/jquery/src/css.js +107 -55
- data/lib/epuber/third_party/bower/bower_components/jquery/src/data/Data.js +93 -74
- data/lib/epuber/third_party/bower/bower_components/jquery/src/data/{accepts.js → var/acceptData.js} +4 -6
- data/lib/epuber/third_party/bower/bower_components/jquery/src/data/var/{data_user.js → dataPriv.js} +2 -2
- data/lib/epuber/third_party/bower/bower_components/jquery/src/data/var/{data_priv.js → dataUser.js} +2 -2
- data/lib/epuber/third_party/bower/bower_components/jquery/src/data.js +49 -40
- data/lib/epuber/third_party/bower/bower_components/jquery/src/deferred.js +34 -25
- data/lib/epuber/third_party/bower/bower_components/jquery/src/deprecated.js +27 -8
- data/lib/epuber/third_party/bower/bower_components/jquery/src/dimensions.js +9 -5
- data/lib/epuber/third_party/bower/bower_components/jquery/src/effects/Tween.js +14 -7
- data/lib/epuber/third_party/bower/bower_components/jquery/src/effects/animatedSelector.js +4 -4
- data/lib/epuber/third_party/bower/bower_components/jquery/src/effects.js +96 -115
- data/lib/epuber/third_party/bower/bower_components/jquery/src/event/ajax.js +11 -4
- data/lib/epuber/third_party/bower/bower_components/jquery/src/event/alias.js +11 -23
- data/lib/epuber/third_party/bower/bower_components/jquery/src/event/focusin.js +53 -0
- data/lib/epuber/third_party/bower/bower_components/jquery/src/event/support.js +3 -3
- data/lib/epuber/third_party/bower/bower_components/jquery/src/event/trigger.js +183 -0
- data/lib/epuber/third_party/bower/bower_components/jquery/src/event.js +168 -325
- data/lib/epuber/third_party/bower/bower_components/jquery/src/exports/amd.js +3 -3
- data/lib/epuber/third_party/bower/bower_components/jquery/src/exports/global.js +2 -8
- data/lib/epuber/third_party/bower/bower_components/jquery/src/intro.js +1 -1
- data/lib/epuber/third_party/bower/bower_components/jquery/src/jquery.js +5 -5
- data/lib/epuber/third_party/bower/bower_components/jquery/src/manipulation/_evalUrl.js +6 -4
- data/lib/epuber/third_party/bower/bower_components/jquery/src/manipulation/buildFragment.js +102 -0
- data/lib/epuber/third_party/bower/bower_components/jquery/src/manipulation/getAll.js +21 -0
- data/lib/epuber/third_party/bower/bower_components/jquery/src/manipulation/setGlobalEval.js +20 -0
- data/lib/epuber/third_party/bower/bower_components/jquery/src/manipulation/support.js +7 -6
- data/lib/epuber/third_party/bower/bower_components/jquery/src/manipulation/var/rcheckableType.js +3 -3
- data/lib/epuber/third_party/bower/bower_components/jquery/src/manipulation/var/rscriptType.js +3 -0
- data/lib/epuber/third_party/bower/bower_components/jquery/src/manipulation/var/rtagName.js +3 -0
- data/lib/epuber/third_party/bower/bower_components/jquery/src/manipulation/wrapMap.js +27 -0
- data/lib/epuber/third_party/bower/bower_components/jquery/src/manipulation.js +206 -305
- data/lib/epuber/third_party/bower/bower_components/jquery/src/offset.js +40 -29
- data/lib/epuber/third_party/bower/bower_components/jquery/src/outro.js +1 -0
- data/lib/epuber/third_party/bower/bower_components/jquery/src/queue/delay.js +6 -6
- data/lib/epuber/third_party/bower/bower_components/jquery/src/queue.js +23 -22
- data/lib/epuber/third_party/bower/bower_components/jquery/src/selector-native.js +107 -68
- data/lib/epuber/third_party/bower/bower_components/jquery/src/selector-sizzle.js +5 -5
- data/lib/epuber/third_party/bower/bower_components/jquery/src/selector.js +1 -1
- data/lib/epuber/third_party/bower/bower_components/jquery/src/serialize.js +28 -14
- data/lib/epuber/third_party/bower/bower_components/jquery/src/traversing/findFilter.js +13 -13
- data/lib/epuber/third_party/bower/bower_components/jquery/src/traversing/var/dir.js +20 -0
- data/lib/epuber/third_party/bower/bower_components/jquery/src/traversing/var/rneedsContext.js +2 -2
- data/lib/epuber/third_party/bower/bower_components/jquery/src/traversing/var/siblings.js +15 -0
- data/lib/epuber/third_party/bower/bower_components/jquery/src/traversing.js +32 -56
- data/lib/epuber/third_party/bower/bower_components/jquery/src/var/arr.js +2 -2
- data/lib/epuber/third_party/bower/bower_components/jquery/src/var/class2type.js +3 -2
- data/lib/epuber/third_party/bower/bower_components/jquery/src/var/concat.js +2 -2
- data/lib/epuber/third_party/bower/bower_components/jquery/src/var/document.js +3 -0
- data/lib/epuber/third_party/bower/bower_components/jquery/src/var/documentElement.js +5 -0
- data/lib/epuber/third_party/bower/bower_components/jquery/src/var/hasOwn.js +2 -2
- data/lib/epuber/third_party/bower/bower_components/jquery/src/var/indexOf.js +2 -2
- data/lib/epuber/third_party/bower/bower_components/jquery/src/var/pnum.js +3 -3
- data/lib/epuber/third_party/bower/bower_components/jquery/src/var/push.js +2 -2
- data/lib/epuber/third_party/bower/bower_components/jquery/src/var/rcssNum.js +7 -0
- data/lib/epuber/third_party/bower/bower_components/jquery/src/var/rnotwhite.js +3 -3
- data/lib/epuber/third_party/bower/bower_components/jquery/src/var/slice.js +2 -2
- data/lib/epuber/third_party/bower/bower_components/jquery/src/var/support.js +3 -2
- data/lib/epuber/third_party/bower/bower_components/jquery/src/var/toString.js +2 -2
- data/lib/epuber/third_party/bower/bower_components/jquery/src/wrap.js +19 -19
- data/lib/epuber/third_party/bower/bower_components/spin.js/{LICENSE.txt → LICENSE.md} +2 -1
- data/lib/epuber/third_party/bower/bower_components/spin.js/README.md +21 -21
- data/lib/epuber/third_party/bower/bower_components/spin.js/bower.json +0 -1
- data/lib/epuber/third_party/bower/bower_components/spin.js/jquery.spin.js +23 -24
- data/lib/epuber/third_party/bower/bower_components/spin.js/spin.js +153 -113
- data/lib/epuber/third_party/bower/bower_components/spin.js/spin.min.js +2 -0
- data/lib/epuber/third_party/bower/bower_components/uri.js/CHANGELOG.md +424 -0
- data/lib/epuber/third_party/bower/bower_components/uri.js/README.md +23 -308
- data/lib/epuber/third_party/bower/bower_components/uri.js/SECURITY.md +12 -0
- data/lib/epuber/third_party/bower/bower_components/uri.js/bower.json +2 -2
- data/lib/epuber/third_party/bower/bower_components/uri.js/contributing.md +0 -4
- data/lib/epuber/third_party/bower/bower_components/uri.js/src/IPv6.js +3 -6
- data/lib/epuber/third_party/bower/bower_components/uri.js/src/SecondLevelDomains.js +8 -4
- data/lib/epuber/third_party/bower/bower_components/uri.js/src/URI.fragmentQuery.js +21 -4
- data/lib/epuber/third_party/bower/bower_components/uri.js/src/URI.fragmentURI.js +1 -1
- data/lib/epuber/third_party/bower/bower_components/uri.js/src/URI.js +312 -69
- data/lib/epuber/third_party/bower/bower_components/uri.js/src/URI.min.js +85 -77
- data/lib/epuber/third_party/bower/bower_components/uri.js/src/URITemplate.js +28 -11
- data/lib/epuber/third_party/bower/bower_components/uri.js/src/jquery.URI.js +17 -18
- data/lib/epuber/third_party/bower/bower_components/uri.js/src/jquery.URI.min.js +6 -6
- data/lib/epuber/third_party/bower/bower_components/uri.js/src/punycode.js +63 -38
- data/lib/epuber/third_party/bower.rb +2 -0
- data/lib/epuber/transformer/text_transformer.rb +1 -2
- data/lib/epuber/transformer.rb +1 -2
- data/lib/epuber/user_interface.rb +1 -1
- data/lib/epuber/vendor/hash_binding.rb +1 -1
- data/lib/epuber/vendor/nokogiri_extensions.rb +24 -21
- data/lib/epuber/vendor/ruby_templater.rb +1 -2
- data/lib/epuber/vendor/size.rb +1 -0
- data/lib/epuber/vendor/version.rb +1 -1
- data/lib/epuber/version.rb +2 -1
- data/lib/epuber.rb +1 -1
- metadata +48 -30
- data/lib/epuber/third_party/bower/bower_components/jquery/src/sizzle/dist/sizzle.min.js +0 -3
- data/lib/epuber/third_party/bower/bower_components/jquery/src/sizzle/dist/sizzle.min.map +0 -1
- data/lib/epuber/third_party/bower/bower_components/jquery/src/var/strundefined.js +0 -3
- data/lib/epuber/vendor/globals_context.rb +0 -26
@@ -1,4 +1,4 @@
|
|
1
|
-
define([
|
1
|
+
define( [
|
2
2
|
"./core",
|
3
3
|
"./core/access",
|
4
4
|
"./css"
|
@@ -6,7 +6,9 @@ define([
|
|
6
6
|
|
7
7
|
// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
|
8
8
|
jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
|
9
|
-
jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name },
|
9
|
+
jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name },
|
10
|
+
function( defaultExtra, funcName ) {
|
11
|
+
|
10
12
|
// Margin is only for outerHeight, outerWidth
|
11
13
|
jQuery.fn[ funcName ] = function( margin, value ) {
|
12
14
|
var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
|
@@ -16,6 +18,7 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
|
|
16
18
|
var doc;
|
17
19
|
|
18
20
|
if ( jQuery.isWindow( elem ) ) {
|
21
|
+
|
19
22
|
// As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
|
20
23
|
// isn't a whole lot we can do. See pull request at this URL for discussion:
|
21
24
|
// https://github.com/jquery/jquery/pull/764
|
@@ -36,6 +39,7 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
|
|
36
39
|
}
|
37
40
|
|
38
41
|
return value === undefined ?
|
42
|
+
|
39
43
|
// Get width or height on the element, requesting but not forcing parseFloat
|
40
44
|
jQuery.css( elem, type, extra ) :
|
41
45
|
|
@@ -43,8 +47,8 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
|
|
43
47
|
jQuery.style( elem, type, value, extra );
|
44
48
|
}, type, chainable ? margin : undefined, chainable, null );
|
45
49
|
};
|
46
|
-
});
|
47
|
-
});
|
50
|
+
} );
|
51
|
+
} );
|
48
52
|
|
49
53
|
return jQuery;
|
50
|
-
});
|
54
|
+
} );
|
@@ -1,4 +1,4 @@
|
|
1
|
-
define([
|
1
|
+
define( [
|
2
2
|
"../core",
|
3
3
|
"../css"
|
4
4
|
], function( jQuery ) {
|
@@ -13,7 +13,7 @@ Tween.prototype = {
|
|
13
13
|
init: function( elem, options, prop, end, easing, unit ) {
|
14
14
|
this.elem = elem;
|
15
15
|
this.prop = prop;
|
16
|
-
this.easing = easing ||
|
16
|
+
this.easing = easing || jQuery.easing._default;
|
17
17
|
this.options = options;
|
18
18
|
this.start = this.now = this.cur();
|
19
19
|
this.end = end;
|
@@ -59,8 +59,10 @@ Tween.propHooks = {
|
|
59
59
|
get: function( tween ) {
|
60
60
|
var result;
|
61
61
|
|
62
|
-
|
63
|
-
|
62
|
+
// Use a property on the element directly when it is not a DOM element,
|
63
|
+
// or when there is no matching style property that exists.
|
64
|
+
if ( tween.elem.nodeType !== 1 ||
|
65
|
+
tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {
|
64
66
|
return tween.elem[ tween.prop ];
|
65
67
|
}
|
66
68
|
|
@@ -69,16 +71,20 @@ Tween.propHooks = {
|
|
69
71
|
// Simple values such as "10px" are parsed to Float;
|
70
72
|
// complex values such as "rotate(1rad)" are returned as-is.
|
71
73
|
result = jQuery.css( tween.elem, tween.prop, "" );
|
74
|
+
|
72
75
|
// Empty strings, null, undefined and "auto" are converted to 0.
|
73
76
|
return !result || result === "auto" ? 0 : result;
|
74
77
|
},
|
75
78
|
set: function( tween ) {
|
79
|
+
|
76
80
|
// Use step hook for back compat.
|
77
81
|
// Use cssHook if its there.
|
78
82
|
// Use .style if available and use plain properties where available.
|
79
83
|
if ( jQuery.fx.step[ tween.prop ] ) {
|
80
84
|
jQuery.fx.step[ tween.prop ]( tween );
|
81
|
-
} else if ( tween.elem.
|
85
|
+
} else if ( tween.elem.nodeType === 1 &&
|
86
|
+
( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null ||
|
87
|
+
jQuery.cssHooks[ tween.prop ] ) ) {
|
82
88
|
jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
|
83
89
|
} else {
|
84
90
|
tween.elem[ tween.prop ] = tween.now;
|
@@ -103,7 +109,8 @@ jQuery.easing = {
|
|
103
109
|
},
|
104
110
|
swing: function( p ) {
|
105
111
|
return 0.5 - Math.cos( p * Math.PI ) / 2;
|
106
|
-
}
|
112
|
+
},
|
113
|
+
_default: "swing"
|
107
114
|
};
|
108
115
|
|
109
116
|
jQuery.fx = Tween.prototype.init;
|
@@ -111,4 +118,4 @@ jQuery.fx = Tween.prototype.init;
|
|
111
118
|
// Back Compat <1.8 extension point
|
112
119
|
jQuery.fx.step = {};
|
113
120
|
|
114
|
-
});
|
121
|
+
} );
|
@@ -1,13 +1,13 @@
|
|
1
|
-
define([
|
1
|
+
define( [
|
2
2
|
"../core",
|
3
3
|
"../selector",
|
4
4
|
"../effects"
|
5
5
|
], function( jQuery ) {
|
6
6
|
|
7
7
|
jQuery.expr.filters.animated = function( elem ) {
|
8
|
-
return jQuery.grep(jQuery.timers, function( fn ) {
|
8
|
+
return jQuery.grep( jQuery.timers, function( fn ) {
|
9
9
|
return elem === fn.elem;
|
10
|
-
}).length;
|
10
|
+
} ).length;
|
11
11
|
};
|
12
12
|
|
13
|
-
});
|
13
|
+
} );
|
@@ -1,10 +1,13 @@
|
|
1
|
-
define([
|
1
|
+
define( [
|
2
2
|
"./core",
|
3
|
-
"./var/
|
3
|
+
"./var/document",
|
4
|
+
"./var/rcssNum",
|
4
5
|
"./css/var/cssExpand",
|
6
|
+
"./var/rnotwhite",
|
5
7
|
"./css/var/isHidden",
|
8
|
+
"./css/adjustCSS",
|
6
9
|
"./css/defaultDisplay",
|
7
|
-
"./data/var/
|
10
|
+
"./data/var/dataPriv",
|
8
11
|
|
9
12
|
"./core/init",
|
10
13
|
"./effects/Tween",
|
@@ -12,70 +15,19 @@ define([
|
|
12
15
|
"./css",
|
13
16
|
"./deferred",
|
14
17
|
"./traversing"
|
15
|
-
], function( jQuery,
|
18
|
+
], function( jQuery, document, rcssNum, cssExpand, rnotwhite,
|
19
|
+
isHidden, adjustCSS, defaultDisplay, dataPriv ) {
|
16
20
|
|
17
21
|
var
|
18
22
|
fxNow, timerId,
|
19
23
|
rfxtypes = /^(?:toggle|show|hide)$/,
|
20
|
-
|
21
|
-
rrun = /queueHooks$/,
|
22
|
-
animationPrefilters = [ defaultPrefilter ],
|
23
|
-
tweeners = {
|
24
|
-
"*": [ function( prop, value ) {
|
25
|
-
var tween = this.createTween( prop, value ),
|
26
|
-
target = tween.cur(),
|
27
|
-
parts = rfxnum.exec( value ),
|
28
|
-
unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
|
29
|
-
|
30
|
-
// Starting value computation is required for potential unit mismatches
|
31
|
-
start = ( jQuery.cssNumber[ prop ] || unit !== "px" && +target ) &&
|
32
|
-
rfxnum.exec( jQuery.css( tween.elem, prop ) ),
|
33
|
-
scale = 1,
|
34
|
-
maxIterations = 20;
|
35
|
-
|
36
|
-
if ( start && start[ 3 ] !== unit ) {
|
37
|
-
// Trust units reported by jQuery.css
|
38
|
-
unit = unit || start[ 3 ];
|
39
|
-
|
40
|
-
// Make sure we update the tween properties later on
|
41
|
-
parts = parts || [];
|
42
|
-
|
43
|
-
// Iteratively approximate from a nonzero starting point
|
44
|
-
start = +target || 1;
|
45
|
-
|
46
|
-
do {
|
47
|
-
// If previous iteration zeroed out, double until we get *something*.
|
48
|
-
// Use string for doubling so we don't accidentally see scale as unchanged below
|
49
|
-
scale = scale || ".5";
|
50
|
-
|
51
|
-
// Adjust and apply
|
52
|
-
start = start / scale;
|
53
|
-
jQuery.style( tween.elem, prop, start + unit );
|
54
|
-
|
55
|
-
// Update scale, tolerating zero or NaN from tween.cur(),
|
56
|
-
// break the loop if scale is unchanged or perfect, or if we've just had enough
|
57
|
-
} while ( scale !== (scale = tween.cur() / target) && scale !== 1 && --maxIterations );
|
58
|
-
}
|
59
|
-
|
60
|
-
// Update tween properties
|
61
|
-
if ( parts ) {
|
62
|
-
start = tween.start = +start || +target || 0;
|
63
|
-
tween.unit = unit;
|
64
|
-
// If a +=/-= token was provided, we're doing a relative animation
|
65
|
-
tween.end = parts[ 1 ] ?
|
66
|
-
start + ( parts[ 1 ] + 1 ) * parts[ 2 ] :
|
67
|
-
+parts[ 2 ];
|
68
|
-
}
|
69
|
-
|
70
|
-
return tween;
|
71
|
-
} ]
|
72
|
-
};
|
24
|
+
rrun = /queueHooks$/;
|
73
25
|
|
74
26
|
// Animations created synchronously will run synchronously
|
75
27
|
function createFxNow() {
|
76
|
-
setTimeout(function() {
|
28
|
+
window.setTimeout( function() {
|
77
29
|
fxNow = undefined;
|
78
|
-
});
|
30
|
+
} );
|
79
31
|
return ( fxNow = jQuery.now() );
|
80
32
|
}
|
81
33
|
|
@@ -102,11 +54,11 @@ function genFx( type, includeWidth ) {
|
|
102
54
|
|
103
55
|
function createTween( value, prop, animation ) {
|
104
56
|
var tween,
|
105
|
-
collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ),
|
57
|
+
collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ),
|
106
58
|
index = 0,
|
107
59
|
length = collection.length;
|
108
60
|
for ( ; index < length; index++ ) {
|
109
|
-
if ( (tween = collection[ index ].call( animation, prop, value )) ) {
|
61
|
+
if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {
|
110
62
|
|
111
63
|
// We're done with this property
|
112
64
|
return tween;
|
@@ -121,7 +73,7 @@ function defaultPrefilter( elem, props, opts ) {
|
|
121
73
|
orig = {},
|
122
74
|
style = elem.style,
|
123
75
|
hidden = elem.nodeType && isHidden( elem ),
|
124
|
-
dataShow =
|
76
|
+
dataShow = dataPriv.get( elem, "fxshow" );
|
125
77
|
|
126
78
|
// Handle queue: false promises
|
127
79
|
if ( !opts.queue ) {
|
@@ -137,19 +89,21 @@ function defaultPrefilter( elem, props, opts ) {
|
|
137
89
|
}
|
138
90
|
hooks.unqueued++;
|
139
91
|
|
140
|
-
anim.always(function() {
|
92
|
+
anim.always( function() {
|
93
|
+
|
141
94
|
// Ensure the complete handler is called before this completes
|
142
|
-
anim.always(function() {
|
95
|
+
anim.always( function() {
|
143
96
|
hooks.unqueued--;
|
144
97
|
if ( !jQuery.queue( elem, "fx" ).length ) {
|
145
98
|
hooks.empty.fire();
|
146
99
|
}
|
147
|
-
});
|
148
|
-
});
|
100
|
+
} );
|
101
|
+
} );
|
149
102
|
}
|
150
103
|
|
151
104
|
// Height/width overflow pass
|
152
105
|
if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {
|
106
|
+
|
153
107
|
// Make sure that nothing sneaks out
|
154
108
|
// Record all 3 overflow attributes because IE9-10 do not
|
155
109
|
// change the overflow attribute when overflowX and
|
@@ -162,7 +116,7 @@ function defaultPrefilter( elem, props, opts ) {
|
|
162
116
|
|
163
117
|
// Test default display if display is currently "none"
|
164
118
|
checkDisplay = display === "none" ?
|
165
|
-
|
119
|
+
dataPriv.get( elem, "olddisplay" ) || defaultDisplay( elem.nodeName ) : display;
|
166
120
|
|
167
121
|
if ( checkDisplay === "inline" && jQuery.css( elem, "float" ) === "none" ) {
|
168
122
|
style.display = "inline-block";
|
@@ -171,11 +125,11 @@ function defaultPrefilter( elem, props, opts ) {
|
|
171
125
|
|
172
126
|
if ( opts.overflow ) {
|
173
127
|
style.overflow = "hidden";
|
174
|
-
anim.always(function() {
|
128
|
+
anim.always( function() {
|
175
129
|
style.overflow = opts.overflow[ 0 ];
|
176
130
|
style.overflowX = opts.overflow[ 1 ];
|
177
131
|
style.overflowY = opts.overflow[ 2 ];
|
178
|
-
});
|
132
|
+
} );
|
179
133
|
}
|
180
134
|
|
181
135
|
// show/hide pass
|
@@ -186,7 +140,8 @@ function defaultPrefilter( elem, props, opts ) {
|
|
186
140
|
toggle = toggle || value === "toggle";
|
187
141
|
if ( value === ( hidden ? "hide" : "show" ) ) {
|
188
142
|
|
189
|
-
// If there is dataShow left over from a stopped hide or show
|
143
|
+
// If there is dataShow left over from a stopped hide or show
|
144
|
+
// and we are going to proceed with show, we should pretend to be hidden
|
190
145
|
if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
|
191
146
|
hidden = true;
|
192
147
|
} else {
|
@@ -207,7 +162,7 @@ function defaultPrefilter( elem, props, opts ) {
|
|
207
162
|
hidden = dataShow.hidden;
|
208
163
|
}
|
209
164
|
} else {
|
210
|
-
dataShow =
|
165
|
+
dataShow = dataPriv.access( elem, "fxshow", {} );
|
211
166
|
}
|
212
167
|
|
213
168
|
// Store state if its toggle - enables .stop().toggle() to "reverse"
|
@@ -217,18 +172,18 @@ function defaultPrefilter( elem, props, opts ) {
|
|
217
172
|
if ( hidden ) {
|
218
173
|
jQuery( elem ).show();
|
219
174
|
} else {
|
220
|
-
anim.done(function() {
|
175
|
+
anim.done( function() {
|
221
176
|
jQuery( elem ).hide();
|
222
|
-
});
|
177
|
+
} );
|
223
178
|
}
|
224
|
-
anim.done(function() {
|
179
|
+
anim.done( function() {
|
225
180
|
var prop;
|
226
181
|
|
227
|
-
|
182
|
+
dataPriv.remove( elem, "fxshow" );
|
228
183
|
for ( prop in orig ) {
|
229
184
|
jQuery.style( elem, prop, orig[ prop ] );
|
230
185
|
}
|
231
|
-
});
|
186
|
+
} );
|
232
187
|
for ( prop in orig ) {
|
233
188
|
tween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
|
234
189
|
|
@@ -242,7 +197,7 @@ function defaultPrefilter( elem, props, opts ) {
|
|
242
197
|
}
|
243
198
|
|
244
199
|
// If this is a noop like .hide().hide(), restore an overwritten display value
|
245
|
-
} else if ( (display === "none" ? defaultDisplay( elem.nodeName ) : display) === "inline" ) {
|
200
|
+
} else if ( ( display === "none" ? defaultDisplay( elem.nodeName ) : display ) === "inline" ) {
|
246
201
|
style.display = display;
|
247
202
|
}
|
248
203
|
}
|
@@ -288,17 +243,19 @@ function Animation( elem, properties, options ) {
|
|
288
243
|
var result,
|
289
244
|
stopped,
|
290
245
|
index = 0,
|
291
|
-
length =
|
246
|
+
length = Animation.prefilters.length,
|
292
247
|
deferred = jQuery.Deferred().always( function() {
|
248
|
+
|
293
249
|
// Don't match elem in the :animated selector
|
294
250
|
delete tick.elem;
|
295
|
-
}),
|
251
|
+
} ),
|
296
252
|
tick = function() {
|
297
253
|
if ( stopped ) {
|
298
254
|
return false;
|
299
255
|
}
|
300
256
|
var currentTime = fxNow || createFxNow(),
|
301
257
|
remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
|
258
|
+
|
302
259
|
// Support: Android 2.3
|
303
260
|
// Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
|
304
261
|
temp = remaining / animation.duration || 0,
|
@@ -310,7 +267,7 @@ function Animation( elem, properties, options ) {
|
|
310
267
|
animation.tweens[ index ].run( percent );
|
311
268
|
}
|
312
269
|
|
313
|
-
deferred.notifyWith( elem, [ animation, percent, remaining ]);
|
270
|
+
deferred.notifyWith( elem, [ animation, percent, remaining ] );
|
314
271
|
|
315
272
|
if ( percent < 1 && length ) {
|
316
273
|
return remaining;
|
@@ -319,10 +276,13 @@ function Animation( elem, properties, options ) {
|
|
319
276
|
return false;
|
320
277
|
}
|
321
278
|
},
|
322
|
-
animation = deferred.promise({
|
279
|
+
animation = deferred.promise( {
|
323
280
|
elem: elem,
|
324
281
|
props: jQuery.extend( {}, properties ),
|
325
|
-
opts: jQuery.extend( true, {
|
282
|
+
opts: jQuery.extend( true, {
|
283
|
+
specialEasing: {},
|
284
|
+
easing: jQuery.easing._default
|
285
|
+
}, options ),
|
326
286
|
originalProperties: properties,
|
327
287
|
originalOptions: options,
|
328
288
|
startTime: fxNow || createFxNow(),
|
@@ -336,6 +296,7 @@ function Animation( elem, properties, options ) {
|
|
336
296
|
},
|
337
297
|
stop: function( gotoEnd ) {
|
338
298
|
var index = 0,
|
299
|
+
|
339
300
|
// If we are going to the end, we want to run all the tweens
|
340
301
|
// otherwise we skip this part
|
341
302
|
length = gotoEnd ? animation.tweens.length : 0;
|
@@ -349,20 +310,25 @@ function Animation( elem, properties, options ) {
|
|
349
310
|
|
350
311
|
// Resolve when we played the last frame; otherwise, reject
|
351
312
|
if ( gotoEnd ) {
|
313
|
+
deferred.notifyWith( elem, [ animation, 1, 0 ] );
|
352
314
|
deferred.resolveWith( elem, [ animation, gotoEnd ] );
|
353
315
|
} else {
|
354
316
|
deferred.rejectWith( elem, [ animation, gotoEnd ] );
|
355
317
|
}
|
356
318
|
return this;
|
357
319
|
}
|
358
|
-
}),
|
320
|
+
} ),
|
359
321
|
props = animation.props;
|
360
322
|
|
361
323
|
propFilter( props, animation.opts.specialEasing );
|
362
324
|
|
363
325
|
for ( ; index < length ; index++ ) {
|
364
|
-
result =
|
326
|
+
result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );
|
365
327
|
if ( result ) {
|
328
|
+
if ( jQuery.isFunction( result.stop ) ) {
|
329
|
+
jQuery._queueHooks( animation.elem, animation.opts.queue ).stop =
|
330
|
+
jQuery.proxy( result.stop, result );
|
331
|
+
}
|
366
332
|
return result;
|
367
333
|
}
|
368
334
|
}
|
@@ -378,7 +344,7 @@ function Animation( elem, properties, options ) {
|
|
378
344
|
elem: elem,
|
379
345
|
anim: animation,
|
380
346
|
queue: animation.opts.queue
|
381
|
-
})
|
347
|
+
} )
|
382
348
|
);
|
383
349
|
|
384
350
|
// attach callbacks from options
|
@@ -389,13 +355,20 @@ function Animation( elem, properties, options ) {
|
|
389
355
|
}
|
390
356
|
|
391
357
|
jQuery.Animation = jQuery.extend( Animation, {
|
358
|
+
tweeners: {
|
359
|
+
"*": [ function( prop, value ) {
|
360
|
+
var tween = this.createTween( prop, value );
|
361
|
+
adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );
|
362
|
+
return tween;
|
363
|
+
} ]
|
364
|
+
},
|
392
365
|
|
393
366
|
tweener: function( props, callback ) {
|
394
367
|
if ( jQuery.isFunction( props ) ) {
|
395
368
|
callback = props;
|
396
369
|
props = [ "*" ];
|
397
370
|
} else {
|
398
|
-
props = props.
|
371
|
+
props = props.match( rnotwhite );
|
399
372
|
}
|
400
373
|
|
401
374
|
var prop,
|
@@ -404,19 +377,21 @@ jQuery.Animation = jQuery.extend( Animation, {
|
|
404
377
|
|
405
378
|
for ( ; index < length ; index++ ) {
|
406
379
|
prop = props[ index ];
|
407
|
-
tweeners[ prop ] = tweeners[ prop ] || [];
|
408
|
-
tweeners[ prop ].unshift( callback );
|
380
|
+
Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];
|
381
|
+
Animation.tweeners[ prop ].unshift( callback );
|
409
382
|
}
|
410
383
|
},
|
411
384
|
|
385
|
+
prefilters: [ defaultPrefilter ],
|
386
|
+
|
412
387
|
prefilter: function( callback, prepend ) {
|
413
388
|
if ( prepend ) {
|
414
|
-
|
389
|
+
Animation.prefilters.unshift( callback );
|
415
390
|
} else {
|
416
|
-
|
391
|
+
Animation.prefilters.push( callback );
|
417
392
|
}
|
418
393
|
}
|
419
|
-
});
|
394
|
+
} );
|
420
395
|
|
421
396
|
jQuery.speed = function( speed, easing, fn ) {
|
422
397
|
var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
|
@@ -426,8 +401,9 @@ jQuery.speed = function( speed, easing, fn ) {
|
|
426
401
|
easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
|
427
402
|
};
|
428
403
|
|
429
|
-
opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ?
|
430
|
-
opt.duration
|
404
|
+
opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ?
|
405
|
+
opt.duration : opt.duration in jQuery.fx.speeds ?
|
406
|
+
jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
|
431
407
|
|
432
408
|
// Normalize opt.queue - true/undefined/null -> "fx"
|
433
409
|
if ( opt.queue == null || opt.queue === true ) {
|
@@ -450,24 +426,25 @@ jQuery.speed = function( speed, easing, fn ) {
|
|
450
426
|
return opt;
|
451
427
|
};
|
452
428
|
|
453
|
-
jQuery.fn.extend({
|
429
|
+
jQuery.fn.extend( {
|
454
430
|
fadeTo: function( speed, to, easing, callback ) {
|
455
431
|
|
456
432
|
// Show any hidden elements after setting opacity to 0
|
457
433
|
return this.filter( isHidden ).css( "opacity", 0 ).show()
|
458
434
|
|
459
435
|
// Animate to the value specified
|
460
|
-
.end().animate({ opacity: to }, speed, easing, callback );
|
436
|
+
.end().animate( { opacity: to }, speed, easing, callback );
|
461
437
|
},
|
462
438
|
animate: function( prop, speed, easing, callback ) {
|
463
439
|
var empty = jQuery.isEmptyObject( prop ),
|
464
440
|
optall = jQuery.speed( speed, easing, callback ),
|
465
441
|
doAnimation = function() {
|
442
|
+
|
466
443
|
// Operate on a copy of prop so per-property easing won't be lost
|
467
444
|
var anim = Animation( this, jQuery.extend( {}, prop ), optall );
|
468
445
|
|
469
446
|
// Empty animations, or finishing resolves immediately
|
470
|
-
if ( empty ||
|
447
|
+
if ( empty || dataPriv.get( this, "finish" ) ) {
|
471
448
|
anim.stop( true );
|
472
449
|
}
|
473
450
|
};
|
@@ -493,11 +470,11 @@ jQuery.fn.extend({
|
|
493
470
|
this.queue( type || "fx", [] );
|
494
471
|
}
|
495
472
|
|
496
|
-
return this.each(function() {
|
473
|
+
return this.each( function() {
|
497
474
|
var dequeue = true,
|
498
475
|
index = type != null && type + "queueHooks",
|
499
476
|
timers = jQuery.timers,
|
500
|
-
data =
|
477
|
+
data = dataPriv.get( this );
|
501
478
|
|
502
479
|
if ( index ) {
|
503
480
|
if ( data[ index ] && data[ index ].stop ) {
|
@@ -512,7 +489,9 @@ jQuery.fn.extend({
|
|
512
489
|
}
|
513
490
|
|
514
491
|
for ( index = timers.length; index--; ) {
|
515
|
-
if ( timers[ index ].elem === this &&
|
492
|
+
if ( timers[ index ].elem === this &&
|
493
|
+
( type == null || timers[ index ].queue === type ) ) {
|
494
|
+
|
516
495
|
timers[ index ].anim.stop( gotoEnd );
|
517
496
|
dequeue = false;
|
518
497
|
timers.splice( index, 1 );
|
@@ -525,15 +504,15 @@ jQuery.fn.extend({
|
|
525
504
|
if ( dequeue || !gotoEnd ) {
|
526
505
|
jQuery.dequeue( this, type );
|
527
506
|
}
|
528
|
-
});
|
507
|
+
} );
|
529
508
|
},
|
530
509
|
finish: function( type ) {
|
531
510
|
if ( type !== false ) {
|
532
511
|
type = type || "fx";
|
533
512
|
}
|
534
|
-
return this.each(function() {
|
513
|
+
return this.each( function() {
|
535
514
|
var index,
|
536
|
-
data =
|
515
|
+
data = dataPriv.get( this ),
|
537
516
|
queue = data[ type + "queue" ],
|
538
517
|
hooks = data[ type + "queueHooks" ],
|
539
518
|
timers = jQuery.timers,
|
@@ -566,24 +545,24 @@ jQuery.fn.extend({
|
|
566
545
|
|
567
546
|
// Turn off finishing flag
|
568
547
|
delete data.finish;
|
569
|
-
});
|
548
|
+
} );
|
570
549
|
}
|
571
|
-
});
|
550
|
+
} );
|
572
551
|
|
573
|
-
jQuery.each([ "toggle", "show", "hide" ], function( i, name ) {
|
552
|
+
jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) {
|
574
553
|
var cssFn = jQuery.fn[ name ];
|
575
554
|
jQuery.fn[ name ] = function( speed, easing, callback ) {
|
576
555
|
return speed == null || typeof speed === "boolean" ?
|
577
556
|
cssFn.apply( this, arguments ) :
|
578
557
|
this.animate( genFx( name, true ), speed, easing, callback );
|
579
558
|
};
|
580
|
-
});
|
559
|
+
} );
|
581
560
|
|
582
561
|
// Generate shortcuts for custom animations
|
583
|
-
jQuery.each({
|
584
|
-
slideDown: genFx("show"),
|
585
|
-
slideUp: genFx("hide"),
|
586
|
-
slideToggle: genFx("toggle"),
|
562
|
+
jQuery.each( {
|
563
|
+
slideDown: genFx( "show" ),
|
564
|
+
slideUp: genFx( "hide" ),
|
565
|
+
slideToggle: genFx( "toggle" ),
|
587
566
|
fadeIn: { opacity: "show" },
|
588
567
|
fadeOut: { opacity: "hide" },
|
589
568
|
fadeToggle: { opacity: "toggle" }
|
@@ -591,7 +570,7 @@ jQuery.each({
|
|
591
570
|
jQuery.fn[ name ] = function( speed, easing, callback ) {
|
592
571
|
return this.animate( props, speed, easing, callback );
|
593
572
|
};
|
594
|
-
});
|
573
|
+
} );
|
595
574
|
|
596
575
|
jQuery.timers = [];
|
597
576
|
jQuery.fx.tick = function() {
|
@@ -603,6 +582,7 @@ jQuery.fx.tick = function() {
|
|
603
582
|
|
604
583
|
for ( ; i < timers.length; i++ ) {
|
605
584
|
timer = timers[ i ];
|
585
|
+
|
606
586
|
// Checks the timer has not already been removed
|
607
587
|
if ( !timer() && timers[ i ] === timer ) {
|
608
588
|
timers.splice( i--, 1 );
|
@@ -625,24 +605,25 @@ jQuery.fx.timer = function( timer ) {
|
|
625
605
|
};
|
626
606
|
|
627
607
|
jQuery.fx.interval = 13;
|
628
|
-
|
629
608
|
jQuery.fx.start = function() {
|
630
609
|
if ( !timerId ) {
|
631
|
-
timerId = setInterval( jQuery.fx.tick, jQuery.fx.interval );
|
610
|
+
timerId = window.setInterval( jQuery.fx.tick, jQuery.fx.interval );
|
632
611
|
}
|
633
612
|
};
|
634
613
|
|
635
614
|
jQuery.fx.stop = function() {
|
636
|
-
clearInterval( timerId );
|
615
|
+
window.clearInterval( timerId );
|
616
|
+
|
637
617
|
timerId = null;
|
638
618
|
};
|
639
619
|
|
640
620
|
jQuery.fx.speeds = {
|
641
621
|
slow: 600,
|
642
622
|
fast: 200,
|
623
|
+
|
643
624
|
// Default speed
|
644
625
|
_default: 400
|
645
626
|
};
|
646
627
|
|
647
628
|
return jQuery;
|
648
|
-
});
|
629
|
+
} );
|
@@ -1,13 +1,20 @@
|
|
1
|
-
define([
|
1
|
+
define( [
|
2
2
|
"../core",
|
3
3
|
"../event"
|
4
4
|
], function( jQuery ) {
|
5
5
|
|
6
6
|
// Attach a bunch of functions for handling common AJAX events
|
7
|
-
jQuery.each( [
|
7
|
+
jQuery.each( [
|
8
|
+
"ajaxStart",
|
9
|
+
"ajaxStop",
|
10
|
+
"ajaxComplete",
|
11
|
+
"ajaxError",
|
12
|
+
"ajaxSuccess",
|
13
|
+
"ajaxSend"
|
14
|
+
], function( i, type ) {
|
8
15
|
jQuery.fn[ type ] = function( fn ) {
|
9
16
|
return this.on( type, fn );
|
10
17
|
};
|
11
|
-
});
|
18
|
+
} );
|
12
19
|
|
13
|
-
});
|
20
|
+
} );
|