Permalink
Browse files

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
  • Loading branch information...
1 parent 146979b commit 9889ba5c4b3d27cef656c50fdf0c2669865db369 @chillu chillu committed Nov 21, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 thirdparty/behaviour/behaviour.js
@@ -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.

0 comments on commit 9889ba5

Please sign in to comment.