This commit is contained in:
lavrton
2015-01-15 09:47:30 +07:00
parent e5122a16a6
commit 58a4e47054
4 changed files with 18 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "KineticJS",
"version": "5.1.9",
"homepage": "http://lavrton.github.io/KineticJS/",
"version": "5.1.10",
"homepage": "http://kineticjs.com/",
"authors": [
"Eric Rowell", "Anton Lavrenov"
],

View File

@@ -1,9 +1,9 @@
/*
* KineticJS JavaScript Framework v5.1.9
* KineticJS JavaScript Framework v5.1.10
* http://lavrton.github.io/KineticJS/
* Licensed under the MIT or GPL Version 2 licenses.
* Date: 2015-01-09
* Date: 2015-01-15
*
* Original work Copyright (C) 2011 - 2013 by Eric Rowell
* Modified work Copyright 2015 Anton Lavrenov
@@ -36,7 +36,7 @@ var Kinetic = {};
Kinetic = {
// public
version: '5.1.9',
version: '5.1.10',
// private
stages: [],
@@ -510,13 +510,15 @@ var Kinetic = {};
},
_addName: function(node, name) {
if(name !== undefined) {
var names = name.split(/\W+/g);
var names = name.split(/\s/g);
for(var n = 0; n < names.length; n++) {
if (names[n]) {
if(this.names[names[n]] === undefined) {
this.names[names[n]] = [];
var subname = names[n];
if (subname) {
if(this.names[subname] === undefined) {
this.names[subname] = [];
}
this.names[names[n]].push(node);
this.names[subname].push(node);
}
}
}
@@ -7260,7 +7262,7 @@ var Kinetic = {};
* var dragBoundFunc = node.dragBoundFunc();
*
* // create vertical drag and drop
* node.dragBoundFunc(function(){
* node.dragBoundFunc(function(pos){
* return {
* x: this.getAbsolutePosition().x,
* y: pos.y

4
kinetic.min.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -1,11 +1,10 @@
{
"name": "kinetic",
"version": "5.1.9",
"version": "5.1.10",
"devDependencies": {
"chai": "1.9.2",
"connect": "3.2.0",
"finalhandler": "^0.3.3",
"grunt": "0.4.5",
"grunt-cli": "0.1.13",
"grunt-contrib-clean": "0.6.0",
"grunt-contrib-concat": "0.5.0",
"grunt-contrib-copy": "~0.6.0",
@@ -17,11 +16,9 @@
"grunt-mocha-phantomjs": "~0.6.0",
"grunt-replace": "0.7.9",
"grunt-shell": "~1.1.1",
"ink-docstrap": "^0.4.12",
"jsdoc": "~3.3.0-alpha9",
"mocha": "1.21.4",
"mocha-phantomjs": "3.5.0",
"phantomjs": "1.9.10"
"serve-static": "^1.8.0"
},
"keywords": [
"canvas",