Permalink
Browse files

[enhance] Dom: binded the jQuery select() function

  • Loading branch information...
1 parent 4676d7b commit 90cf5ff351a7011091c04095ffc775e803e1a1df @Aqua-Ye Aqua-Ye committed Jan 9, 2012
Showing with 14 additions and 1 deletion.
  1. +7 −0 opabsl/jsbsl/bslDom.js
  2. +7 −1 stdlib/core/xhtml/dom.opa
@@ -193,6 +193,13 @@
return dom.parents();
}
+##register select: Dom.private.element -> void
+##args(dom)
+{
+ dom.select();
+ return js_void;
+}
+
##register compose: opa[list(Dom.private.element)] -> Dom.private.element
##args(dom)
{
@@ -1,5 +1,5 @@
/*
- Copyright © 2011 MLstate
+ Copyright © 2011, 2012 MLstate
This file is part of OPA.
@@ -334,6 +334,12 @@ Dom = {{
{concrete = %% BslDom.select_parent_several %%(position)}
)
+ select(dom:dom): void =
+ (
+ position = of_selection(dom)
+ %% BslDom.select %%(position)
+ )
+
/**
* {2 Inserting new content}
*/

0 comments on commit 90cf5ff

Please sign in to comment.