Skip to content

Commit

Permalink
Bump version to 2.1.0rc2 and rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveSanderson committed Apr 25, 2012
1 parent 76bb0b1 commit bbc3b9a
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 73 deletions.
2 changes: 1 addition & 1 deletion build/fragments/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.0rc
2.1.0rc2
18 changes: 10 additions & 8 deletions build/output/knockout-latest.debug.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Knockout JavaScript library v2.1.0rc
// Knockout JavaScript library v2.1.0rc2
// (c) Steven Sanderson - http://knockoutjs.com/
// License: MIT (http://www.opensource.org/licenses/mit-license.php)

Expand Down Expand Up @@ -36,7 +36,7 @@ ko.exportSymbol = function(koPath, object) {
ko.exportProperty = function(owner, publicName, object) {
owner[publicName] = object;
};
ko.version = "2.1.0rc";
ko.version = "2.1.0rc2";

ko.exportSymbol('version', ko.version);
ko.utils = new (function () {
Expand All @@ -54,6 +54,7 @@ ko.utils = new (function () {
knownEventTypesByEventName[knownEventsForType[i]] = eventType;
}
}
var eventsThatMustBeRegisteredUsingAttachEvent = { 'propertychange': true }; // Workaround for an IE9 issue - https://github.com/SteveSanderson/knockout/issues/406

// Detect IE versions for bug workarounds (uses IE conditionals, not UA string, for robustness)
var ieVersion = (function() {
Expand Down Expand Up @@ -257,7 +258,8 @@ ko.utils = new (function () {
},

registerEventHandler: function (element, eventType, handler) {
if (typeof jQuery != "undefined") {
var mustUseAttachEvent = ieVersion && eventsThatMustBeRegisteredUsingAttachEvent[eventType];
if (!mustUseAttachEvent && typeof jQuery != "undefined") {
if (isClickOnCheckableElement(element, eventType)) {
// For click events on checkboxes, jQuery interferes with the event handling in an awkward way:
// it toggles the element checked state *after* the click event handlers run, whereas native
Expand All @@ -273,7 +275,7 @@ ko.utils = new (function () {
};
}
jQuery(element)['bind'](eventType, handler);
} else if (typeof element.addEventListener == "function")
} else if (!mustUseAttachEvent && typeof element.addEventListener == "function")
element.addEventListener(eventType, handler, false);
else if (typeof element.attachEvent != "undefined")
element.attachEvent("on" + eventType, function (event) {
Expand Down Expand Up @@ -3320,10 +3322,10 @@ ko.exportSymbol('utils.compareArrays', ko.utils.compareArrays);
}
}
if (!invokedBeforeRemoveCallback && nodesToDelete.length) {
var commonParent = nodesToDelete[0].element.parentNode;
if (commonParent) {
for (var i = 0; i < nodesToDelete.length; i++)
commonParent.removeChild(nodesToDelete[i].element);
for (var i = 0; i < nodesToDelete.length; i++) {
var element = nodesToDelete[i].element;
if (element.parentNode)
element.parentNode.removeChild(element);
}
}

Expand Down
Loading

0 comments on commit bbc3b9a

Please sign in to comment.