Skip to content

Commit af2fb4c

Browse files
author
Alexis Abril
committed
Updating release (latest: 1.0.1)
1 parent 82d4f8f commit af2fb4c

File tree

651 files changed

+78653
-306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

651 files changed

+78653
-306
lines changed

downloads/jquerypp.1.0.1.zip

493 KB
Binary file not shown.

release/latest/amd/jquerypp/dom/animate.js renamed to release/1.0.1/amd/jquerypp/dom/animate.js.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
/*
2-
* jQuery++ - 1.0.0 (2012-11-23)
1+
/*!
2+
* jQuery++ - 1.0.1 (2013-02-06)
33
* http://jquerypp.com
4-
* Copyright (c) 2012 Bitovi
4+
* Copyright (c) 2013 Bitovi
55
* Licensed MIT
66
*/
77
define(['jquery', 'jquerypp/dom/styles'], function ($) {
@@ -202,7 +202,7 @@ define(['jquery', 'jquerypp/dom/styles'], function ($) {
202202
return oldanimate.apply(this, arguments);
203203
}
204204

205-
var optall = jQuery.speed(speed, easing, callback);
205+
var optall = $.speed(speed, easing, callback);
206206

207207
// Add everything to the animation queue
208208
this.queue(optall.queue, function (done) {

release/latest/amd/jquerypp/dom/compare.js renamed to release/1.0.1/amd/jquerypp/dom/compare.js.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
/*
2-
* jQuery++ - 1.0.0 (2012-11-23)
1+
/*!
2+
* jQuery++ - 1.0.1 (2013-02-06)
33
* http://jquerypp.com
4-
* Copyright (c) 2012 Bitovi
4+
* Copyright (c) 2013 Bitovi
55
* Licensed MIT
66
*/
77
define(['jquery'], function ($) {
88

99
// See http://ejohn.org/blog/comparing-document-position/
10-
jQuery.fn.compare = function (element) { //usually
10+
$.fn.compare = function (element) { //usually
1111
try {
1212
// Firefox 3 throws an error with XUL - we can't use compare then
1313
element = element.jquery ? element[0] : element;

release/latest/amd/jquerypp/dom/cookie.js renamed to release/1.0.1/amd/jquerypp/dom/cookie.js.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
/*
2-
* jQuery++ - 1.0.0 (2012-11-23)
1+
/*!
2+
* jQuery++ - 1.0.1 (2013-02-06)
33
* http://jquerypp.com
4-
* Copyright (c) 2012 Bitovi
4+
* Copyright (c) 2013 Bitovi
55
* Licensed MIT
66
*/
77
define(['jquery', 'jquerypp/lang/json'], function ($) {
88

9-
jQuery.cookie = function (name, value, options) {
9+
$.cookie = function (name, value, options) {
1010
if (typeof value != 'undefined') {
1111
// name and value given, set cookie
1212
options = options || {};
@@ -15,8 +15,8 @@ define(['jquery', 'jquerypp/lang/json'], function ($) {
1515
options.expires = -1;
1616
}
1717
// convert value to JSON string
18-
if (typeof value == 'object' && jQuery.toJSON) {
19-
value = jQuery.toJSON(value);
18+
if (typeof value == 'object' && $.toJSON) {
19+
value = $.toJSON(value);
2020
}
2121
var expires = '';
2222
// Set expiry
@@ -45,7 +45,7 @@ define(['jquery', 'jquerypp/lang/json'], function ($) {
4545
if (document.cookie && document.cookie != '') {
4646
var cookies = document.cookie.split(';');
4747
for (var i = 0; i < cookies.length; i++) {
48-
var cookie = jQuery.trim(cookies[i]);
48+
var cookie = $.trim(cookies[i]);
4949
// Does this cookie string begin with the name we want?
5050
if (cookie.substring(0, name.length + 1) == (name + '=')) {
5151
// Get the cookie value
@@ -55,9 +55,9 @@ define(['jquery', 'jquerypp/lang/json'], function ($) {
5555
}
5656
}
5757
// Parse JSON from the cookie into an object
58-
if (jQuery.evalJSON && cookieValue && cookieValue.match(/^\s*\{/)) {
58+
if ($.evalJSON && cookieValue && cookieValue.match(/^\s*\{/)) {
5959
try {
60-
cookieValue = jQuery.evalJSON(cookieValue);
60+
cookieValue = $.evalJSON(cookieValue);
6161
}
6262
catch (e) {}
6363
}

release/latest/amd/jquerypp/dom/dimensions.js renamed to release/1.0.1/amd/jquerypp/dom/dimensions.js.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
/*
2-
* jQuery++ - 1.0.0 (2012-11-23)
1+
/*!
2+
* jQuery++ - 1.0.1 (2013-02-06)
33
* http://jquerypp.com
4-
* Copyright (c) 2012 Bitovi
4+
* Copyright (c) 2013 Bitovi
55
* Licensed MIT
66
*/
77
define(['jquery', 'jquerypp/dom/styles'], function ($) {

release/latest/amd/jquerypp/dom/form_params.js renamed to release/1.0.1/amd/jquerypp/dom/form_params.js.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
/*
2-
* jQuery++ - 1.0.0 (2012-11-23)
1+
/*!
2+
* jQuery++ - 1.0.1 (2013-02-06)
33
* http://jquerypp.com
4-
* Copyright (c) 2012 Bitovi
4+
* Copyright (c) 2013 Bitovi
55
* Licensed MIT
66
*/
77
define(['jquery'], function ($) {

release/latest/amd/jquerypp/dom/range.js renamed to release/1.0.1/amd/jquerypp/dom/range.js.js

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
/*
2-
* jQuery++ - 1.0.0 (2012-11-23)
1+
/*!
2+
* jQuery++ - 1.0.1 (2013-02-06)
33
* http://jquerypp.com
4-
* Copyright (c) 2012 Bitovi
4+
* Copyright (c) 2013 Bitovi
55
* Licensed MIT
66
*/
77
define(['jquery', 'jquerypp/dom/compare'], function ($) {
@@ -511,23 +511,37 @@ define(['jquery', 'jquerypp/dom/compare'], function ($) {
511511
getNextTextNode = iteratorMaker("firstChild", "nextSibling"),
512512
getPrevTextNode = iteratorMaker("lastChild", "previousSibling"),
513513
callMove = function (container, offset, howMany) {
514-
if (isText(container)) {
515-
return move(container, offset + howMany)
514+
var mover = howMany < 0 ? getPrevTextNode : getNextTextNode;
515+
516+
// find the text element
517+
if (!isText(container)) {
518+
// sometimes offset isn't actually an element
519+
container = container.childNodes[offset] ? container.childNodes[offset] :
520+
// if this happens, use the last child
521+
container.lastChild;
522+
523+
if (!isText(container)) {
524+
container = mover(container)
525+
}
526+
return move(container, howMany)
516527
} else {
517-
return container.childNodes[offset] ? move(container.childNodes[offset], howMany) : move(container.lastChild, howMany, true)
518-
return
528+
if (offset + howMany < 0) {
529+
return move(mover(container), offset + howMany)
530+
} else {
531+
return move(container, offset + howMany)
532+
}
533+
519534
}
520535
},
536+
// Moves howMany characters from the start of
537+
// from
521538
move = function (from, howMany) {
522539
var mover = howMany < 0 ? getPrevTextNode : getNextTextNode;
523540

524541
howMany = Math.abs(howMany);
525542

526-
if (!isText(from)) {
527-
from = mover(from)
528-
}
529543
while (from && howMany >= from.nodeValue.length) {
530-
hasMany = howMany - from.nodeValue.length;
544+
howMany = howMany - from.nodeValue.length;
531545
from = mover(from)
532546
}
533547
return {

release/latest/amd/jquerypp/dom/selection.js renamed to release/1.0.1/amd/jquerypp/dom/selection.js.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
/*
2-
* jQuery++ - 1.0.0 (2012-11-23)
1+
/*!
2+
* jQuery++ - 1.0.1 (2013-02-06)
33
* http://jquerypp.com
4-
* Copyright (c) 2012 Bitovi
4+
* Copyright (c) 2013 Bitovi
55
* Licensed MIT
66
*/
77
define(['jquery', 'jquerypp/dom/range'], function ($) {

release/latest/amd/jquerypp/dom/styles.js renamed to release/1.0.1/amd/jquerypp/dom/styles.js.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
/*
2-
* jQuery++ - 1.0.0 (2012-11-23)
1+
/*!
2+
* jQuery++ - 1.0.1 (2013-02-06)
33
* http://jquerypp.com
4-
* Copyright (c) 2012 Bitovi
4+
* Copyright (c) 2013 Bitovi
55
* Licensed MIT
66
*/
77
define(['jquery'], function ($) {
@@ -44,7 +44,7 @@ define(['jquery'], function ($) {
4444
oldName = name.replace(rdashAlpha, fcamelCase);
4545

4646
if (rfloat.test(name)) {
47-
name = jQuery.support.cssFloat ? "float" : "styleFloat";
47+
name = $.support.cssFloat ? "float" : "styleFloat";
4848
oldName = "cssFloat";
4949
}
5050

release/latest/amd/jquerypp/dom/within.js renamed to release/1.0.1/amd/jquerypp/dom/within.js.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
/*
2-
* jQuery++ - 1.0.0 (2012-11-23)
1+
/*!
2+
* jQuery++ - 1.0.1 (2013-02-06)
33
* http://jquerypp.com
4-
* Copyright (c) 2012 Bitovi
4+
* Copyright (c) 2013 Bitovi
55
* Licensed MIT
66
*/
77
define(['jquery'], function ($) {
@@ -20,7 +20,7 @@ define(['jquery'], function ($) {
2020
}
2121

2222
// uses either the cached offset or .offset()
23-
var offset = useOffsetCache ? jQuery.data(this, "offsetCache") || jQuery.data(this, "offsetCache", q.offset()) : q.offset();
23+
var offset = useOffsetCache ? $.data(this, "offsetCache") || $.data(this, "offsetCache", q.offset()) : q.offset();
2424

2525
// Check if the given coordinates are within the area of the current element
2626
var res = withinBox(left, top, offset.left, offset.top, this.offsetWidth, this.offsetHeight);
@@ -31,7 +31,7 @@ define(['jquery'], function ($) {
3131
}
3232
});
3333

34-
return this.pushStack(jQuery.unique(ret), "within", left + "," + top);
34+
return this.pushStack($.unique(ret), "within", left + "," + top);
3535
}
3636

3737
$.fn.withinBox = function (left, top, width, height, useOffsetCache) {
@@ -42,7 +42,7 @@ define(['jquery'], function ($) {
4242
if (this == document.documentElement) return ret.push(this);
4343

4444
// use cached offset or .offset()
45-
var offset = useOffsetCache ? jQuery.data(this, "offset") || jQuery.data(this, "offset", q.offset()) : q.offset();
45+
var offset = useOffsetCache ? $.data(this, "offset") || $.data(this, "offset", q.offset()) : q.offset();
4646

4747
var ew = q.width(),
4848
eh = q.height(),
@@ -51,7 +51,7 @@ define(['jquery'], function ($) {
5151

5252
if (res) ret.push(this);
5353
});
54-
return this.pushStack(jQuery.unique(ret), "withinBox", jQuery.makeArray(arguments).join(","));
54+
return this.pushStack($.unique(ret), "withinBox", $.makeArray(arguments).join(","));
5555
}
5656

5757
return $;

0 commit comments

Comments
 (0)