Prebuilt module for commit 892e56793d

This commit is contained in:
Paper.js Bot 2016-02-12 17:28:05 +00:00
parent 3a80eb8e89
commit 9e7d8d1444
6 changed files with 57 additions and 42 deletions

View file

@ -9,7 +9,7 @@
* *
* All rights reserved. * All rights reserved.
* *
* Date: Fri Feb 12 17:59:37 2016 +0100 * Date: Fri Feb 12 18:20:40 2016 +0100
* *
*** ***
* *
@ -139,16 +139,18 @@ var Base = new function() {
return bind; return bind;
} }
function set(obj, props, exclude) { function set(obj, args, start) {
for (var key in props) for (var i = start, l = args.length; i < l; i++) {
if (props.hasOwnProperty(key) && !(exclude && exclude[key])) var props = args[i];
obj[key] = props[key]; for (var key in props)
if (props.hasOwnProperty(key))
obj[key] = props[key];
}
return obj; return obj;
} }
return inject(function Base() { return inject(function Base() {
for (var i = 0, l = arguments.length; i < l; i++) return set(this, arguments, 0);
set(this, arguments[i]);
}, { }, {
inject: function(src) { inject: function(src) {
if (src) { if (src) {
@ -205,8 +207,8 @@ var Base = new function() {
return each(this, iter, bind); return each(this, iter, bind);
}, },
set: function(props) { set: function() {
return set(this, props); return set(this, arguments, 0);
}, },
clone: function() { clone: function() {
@ -218,10 +220,13 @@ var Base = new function() {
create: create, create: create,
define: define, define: define,
describe: describe, describe: describe,
set: set,
set: function(obj) {
return set(obj, arguments, 1);
},
clone: function(obj) { clone: function(obj) {
return set(new obj.constructor(), obj); return set(new obj.constructor(), arguments, 0);
}, },
isPlainObject: function(obj) { isPlainObject: function(obj) {

27
dist/paper-core.js vendored
View file

@ -9,7 +9,7 @@
* *
* All rights reserved. * All rights reserved.
* *
* Date: Fri Feb 12 17:59:37 2016 +0100 * Date: Fri Feb 12 18:20:40 2016 +0100
* *
*** ***
* *
@ -139,16 +139,18 @@ var Base = new function() {
return bind; return bind;
} }
function set(obj, props, exclude) { function set(obj, args, start) {
for (var key in props) for (var i = start, l = args.length; i < l; i++) {
if (props.hasOwnProperty(key) && !(exclude && exclude[key])) var props = args[i];
obj[key] = props[key]; for (var key in props)
if (props.hasOwnProperty(key))
obj[key] = props[key];
}
return obj; return obj;
} }
return inject(function Base() { return inject(function Base() {
for (var i = 0, l = arguments.length; i < l; i++) return set(this, arguments, 0);
set(this, arguments[i]);
}, { }, {
inject: function(src) { inject: function(src) {
if (src) { if (src) {
@ -205,8 +207,8 @@ var Base = new function() {
return each(this, iter, bind); return each(this, iter, bind);
}, },
set: function(props) { set: function() {
return set(this, props); return set(this, arguments, 0);
}, },
clone: function() { clone: function() {
@ -218,10 +220,13 @@ var Base = new function() {
create: create, create: create,
define: define, define: define,
describe: describe, describe: describe,
set: set,
set: function(obj) {
return set(obj, arguments, 1);
},
clone: function(obj) { clone: function(obj) {
return set(new obj.constructor(), obj); return set(new obj.constructor(), arguments, 0);
}, },
isPlainObject: function(obj) { isPlainObject: function(obj) {

File diff suppressed because one or more lines are too long

27
dist/paper-full.js vendored
View file

@ -9,7 +9,7 @@
* *
* All rights reserved. * All rights reserved.
* *
* Date: Fri Feb 12 17:59:37 2016 +0100 * Date: Fri Feb 12 18:20:40 2016 +0100
* *
*** ***
* *
@ -139,16 +139,18 @@ var Base = new function() {
return bind; return bind;
} }
function set(obj, props, exclude) { function set(obj, args, start) {
for (var key in props) for (var i = start, l = args.length; i < l; i++) {
if (props.hasOwnProperty(key) && !(exclude && exclude[key])) var props = args[i];
obj[key] = props[key]; for (var key in props)
if (props.hasOwnProperty(key))
obj[key] = props[key];
}
return obj; return obj;
} }
return inject(function Base() { return inject(function Base() {
for (var i = 0, l = arguments.length; i < l; i++) return set(this, arguments, 0);
set(this, arguments[i]);
}, { }, {
inject: function(src) { inject: function(src) {
if (src) { if (src) {
@ -205,8 +207,8 @@ var Base = new function() {
return each(this, iter, bind); return each(this, iter, bind);
}, },
set: function(props) { set: function() {
return set(this, props); return set(this, arguments, 0);
}, },
clone: function() { clone: function() {
@ -218,10 +220,13 @@ var Base = new function() {
create: create, create: create,
define: define, define: define,
describe: describe, describe: describe,
set: set,
set: function(obj) {
return set(obj, arguments, 1);
},
clone: function(obj) { clone: function(obj) {
return set(new obj.constructor(), obj); return set(new obj.constructor(), arguments, 0);
}, },
isPlainObject: function(obj) { isPlainObject: function(obj) {

File diff suppressed because one or more lines are too long

View file

@ -65,7 +65,7 @@
"require-dir": "^0.3.0", "require-dir": "^0.3.0",
"resemblejs": "^2.1.0", "resemblejs": "^2.1.0",
"stats.js": "0.0.14-master", "stats.js": "0.0.14-master",
"straps": "^1.8.0" "straps": "^1.9.0"
}, },
"keywords": [ "keywords": [
"vector", "vector",