diff --git a/make b/make index 2283fe1..e883efe 100755 --- a/make +++ b/make @@ -10,15 +10,13 @@ var ujs = require('uglify-js'), }, output = { 'raphael-min.js' : ['eve', 'core', 'svg', 'vml'], - 'raphael.js' : ['eve', 'core', 'svg', 'vml'], - 'raphael.pro-min.js' : ['eve', 'core', 'svg'], - 'raphael.pro.js' : ['eve', 'core', 'svg'], + 'raphael.js' : ['eve', 'core', 'svg', 'vml'] }; for (var file in input) { input[file] = fs.readFileSync(input[file], 'utf8'); } -for (var file in output) { +for (file in output) { var out = ''; if (file.indexOf('min') !== -1) { console.log('Compressing ' + file); @@ -30,7 +28,7 @@ for (var file in output) { } } else { console.log('Concatinating ' + file); - for (var i = 0, l = output[file].length; i < l; i++) { + for (i = 0, l = output[file].length; i < l; i++) { out += input[output[file][i]] + '\n'; } } diff --git a/raphael.core.js b/raphael.core.js index 6ece156..e97f82e 100644 --- a/raphael.core.js +++ b/raphael.core.js @@ -3086,7 +3086,7 @@ = (object) data \*/ elproto.getData = function () { - return eldata[this.id] || {}; + return clone(eldata[this.id] || {}); }; /*\ * Element.hover @@ -3513,13 +3513,13 @@ ** > Parameters ** - - bbox (string) bbox to check with + - bbox (object) bbox to check with = (object) @Set \*/ paperproto.getElementsByBBox = function (bbox) { var set = this.set(); this.forEach(function (el) { - if (Raphael.isBBoxIntersect(el.getBBox(), bbox)) { + if (R.isBBoxIntersect(el.getBBox(), bbox)) { set.push(el); } });