mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Moved Function.prototype.create from tree.js into behaviour.js
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92521 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
146979b1b1
commit
9889ba5c4b
4
thirdparty/behaviour/behaviour.js
vendored
4
thirdparty/behaviour/behaviour.js
vendored
@ -306,6 +306,10 @@ function behaveAs(element, behaviourClass, arg1, arg2, arg3, arg4, arg5, arg6) {
|
||||
return element;
|
||||
}
|
||||
|
||||
Function.prototype.create = function(item, arg1, arg2, arg3, arg4, arg5, arg6) {
|
||||
return behaveAs(item, this, arg1, arg2, arg3, arg4, arg5, arg6);
|
||||
}
|
||||
|
||||
/*
|
||||
The following code is Copyright (C) Simon Willison 2004.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user