attr change events no longer bubble. updated functional test data urls

This commit is contained in:
Eric Rowell 2012-07-07 11:52:04 -07:00
parent 9baaee2440
commit 7f7cd24838
5 changed files with 9 additions and 7 deletions

View File

@ -3,7 +3,7 @@
* http://www.kineticjs.com/
* Copyright 2012, Eric Rowell
* Licensed under the MIT or GPL Version 2 licenses.
* Date: Jul 06 2012
* Date: Jul 07 2012
*
* Copyright (C) 2011 - 2012 by Eric Rowell
*
@ -35,6 +35,7 @@
*/
var Kinetic = {};
Kinetic.Global = {
BUBBLE_WHITELIST: ['mousedown', 'mousemove', 'mouseup', 'mouseover', 'mouseout', 'click', 'dblclick', 'touchstart', 'touchmove', 'touchend', 'tap', 'dbltap', 'dragstart', 'dragmove', 'dragend'],
stages: [],
idCounter: 0,
tempNodes: [],
@ -1182,7 +1183,7 @@ Kinetic.Node = Kinetic.Class.extend({
}
// simulate event bubbling
if(!evt.cancelBubble && this.parent) {
if(Kinetic.Global.BUBBLE_WHITELIST.indexOf(eventType) >= 0 && !evt.cancelBubble && this.parent) {
this._handleEvent.call(this.parent, eventType, evt);
}
}

File diff suppressed because one or more lines are too long

View File

@ -7,6 +7,7 @@
*/
var Kinetic = {};
Kinetic.Global = {
BUBBLE_WHITELIST: ['mousedown', 'mousemove', 'mouseup', 'mouseover', 'mouseout', 'click', 'dblclick', 'touchstart', 'touchmove', 'touchend', 'tap', 'dbltap', 'dragstart', 'dragmove', 'dragend'],
stages: [],
idCounter: 0,
tempNodes: [],

View File

@ -762,7 +762,7 @@ Kinetic.Node = Kinetic.Class.extend({
}
// simulate event bubbling
if(!evt.cancelBubble && this.parent) {
if(Kinetic.Global.BUBBLE_WHITELIST.indexOf(eventType) >= 0 && !evt.cancelBubble && this.parent) {
this._handleEvent.call(this.parent, eventType, evt);
}
}

File diff suppressed because one or more lines are too long