Skip to content

Commit bb726b4

Browse files
Minor: don't keep cast functions unless inlined
1 parent dafbbb8 commit bb726b4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

haxelib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license" : "BSD",
55
"tags" : ["nodejs"],
66
"description" : "Exters for sortablejs | RubaXa/Sortable",
7-
"version" : "0.0.1-alpha",
7+
"version" : "0.0.2-alpha",
88
"classPath" : "lib",
99
"releasenote" : "Initial work",
1010
"contributors" : ["jonasmalacofilho", "protocubo"],

lib/js/npm/sortablejs/Options.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ typedef Pixels = Int;
1313
typedef GroupPullFunction = Element -> ?Element -> GroupPullOptions;
1414

1515
abstract GroupPullOptions(Dynamic) from Bool to Bool from GroupPullFunction to GroupPullFunction to String {
16-
@:from static inline function fromClone(keyword:Keyword):GroupPullOptions
16+
@:from @:extern static inline function fromClone(keyword:Keyword):GroupPullOptions
1717
{
1818
if (keyword != "clone") throw "Only 'clone' allowed";
1919
return cast keyword;
@@ -37,7 +37,7 @@ typedef CompleteGroupOptions = {
3737

3838
@:forward
3939
abstract GroupOptions(CompleteGroupOptions) from CompleteGroupOptions to CompleteGroupOptions {
40-
@:from static inline function fromName(name:String)
40+
@:from @:extern static inline function fromName(name:String)
4141
return { name:name, pull:true, put:true };
4242
}
4343

0 commit comments

Comments
 (0)