Skip to content

Commit f8f5ccc

Browse files
author
starzu
committed
Missing methods
1 parent 776d552 commit f8f5ccc

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name := "udash-jquery"
22

3-
version := "1.0.0-rc.1"
3+
version := "1.0.0-rc.2"
44
organization := "io.udash"
55
scalaVersion := "2.11.8"
66
scalacOptions in ThisBuild ++= Seq(

src/main/scala/io/udash/wrappers/jquery/JQueryCallbacks.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ trait JQueryCallbacks[FunType <: js.Function1[ArgType, js.Any], ArgType] extends
1616
* See: <a href="http://api.jquery.com/callbacks.disabled/">jQuery Docs</a> */
1717
def disabled: Boolean = js.native
1818

19+
/** Remove all of the callbacks from a list. <br/>
20+
* See: <a href="http://api.jquery.com/callbacks.empty/">jQuery Docs</a> */
21+
def empty(): JQueryCallbacks[FunType, ArgType] = js.native
22+
1923
/** Call all of the callbacks with the given arguments. <br/>
2024
* See: <a href="http://api.jquery.com/callbacks.fire/">jQuery Docs</a> */
2125
def fire(args: ArgType): JQueryCallbacks[FunType, ArgType] = js.native

src/main/scala/io/udash/wrappers/jquery/JQueryDeferred.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ trait JQueryPromise[FunType <: js.Function1[ArgType, js.Any], ArgType] extends j
2626
* See: <a href="http://api.jquery.com/deferred.promise/">jQuery Docs</a> */
2727
def promise(target: js.Object = js.native): JQueryPromise[FunType, ArgType] = js.native
2828

29+
/** Add handlers to be called when the Deferred object is resolved, rejected, or still in progress. <br/>
30+
* See: <a href="http://api.jquery.com/deferred.then/">jQuery Docs</a> */
31+
// Usage of then as identifier is deprecated. It can be used as a keyword in future versions of scala.
32+
// def then(done: FunType, fail: FunType, progress: FunType): JQueryDeferred[FunType, ArgType] = js.native
33+
2934
/** Determine the current state of a Deferred object. <br/>
3035
* See: <a href="http://api.jquery.com/deferred.resolveWith/">jQuery Docs</a> */
3136
private[jquery] def state: String = js.native

0 commit comments

Comments
 (0)